candland.code
Tuesday, April 01, 2008
« Castle monorail brail view template
|
Main
|
Unit Testing Castle Monorail Filters »
Storing DateTime objects in Amazon Simple DB
I'm working with the Amazon Simple DB web service. It stores everything in strings as such I needed to store a DateTime in ISO 8601 format for later sorting the strings in correct order. The frameworks has at least three formating strings. Either s or u or o. The s format seems like a good choice as it's called the sortable format. However it doesn't store any sub second data or timezone info. The u format is s in universal time, but still lacks the sub second data. Lastly the o format for round trip stores all the DateTime info in ISO 8601 format and should remain sortable as long as all dates are stored in the same time zone.
MSDN DateTime format strings
Here's more good info on storing data as a string in ways that are sortable later and useful Simple DB info.
http://docs.amazonwebservices.com/AmazonSimpleDB/2007-11-07/GettingStartedGuide/
http://docs.amazonwebservices.com/AmazonSimpleDB/2007-11-07/DeveloperGuide/
http://developer.amazonwebservices.com/connect/entry.jspa?externalID=1231&categoryID=152
http://developer.amazonwebservices.com/connect/entry.jspa?externalID=1232&categoryID=152
csharp
|
webservices
Comments [0]
Related posts:
error CS1668: Warning as Error: Invalid search path 'C:\Program Files\Microsoft SDKs\Windows\v6.0A\lib' specified in 'LIB environment variable'
Making Sure A NHibernate IInterceptor Is In The Session
Intercepting NHibernate to Handle Additional Database Work
NHibernate Session Per Request Using Castles WcfFacility
Unit Testing WCF Security with Castles WcfFacility
Getting Started With The Spark View Engine
Comments are closed.
Top Postings
Resolve Lists and Arrays with Castle Win...
Sum a column in a tab-delimited file usi...
Overriding NServiceBus Configuration
Castle monorail logging with windsor
Circuit City Sucks [rant]
Search
Tags
activerecord (2)
aimcc (3)
applications (2)
asp.net (8)
automapper (1)
AwsS3Library (3)
boo (3)
book (2)
brail (1)
build (5)
castle (27)
consulting (1)
csharp (40)
css (1)
dasBlog (3)
database (1)
facebook (1)
flash (1)
fluentnhibernate (2)
gnucash (1)
intermediate language (1)
javascript (8)
jquery (1)
Linq (2)
log4net (1)
monorail (12)
msbuild (2)
mvc (6)
n2cms (5)
nant (3)
nhibernate (11)
NS3Library (2)
nservicebus (4)
openid (1)
opensource (2)
powershell (8)
process (1)
prototype (5)
psake (5)
rant (1)
red27 (1)
redyawk (1)
review (2)
rhinomocks (3)
s#arp architecture (1)
sftp (1)
silverlight (1)
spark (3)
subversion (1)
teamcity (1)
testing (10)
tools (6)
visualstudio (4)
wcf (1)
webservices (4)
windows (4)
wix (3)
Links
Code Format
Amazon.com Widgets
About Me
I'm Dusty Candland a software developer in Colorado.
Email
Projects
Red27 Consulting
BambooTide
CloudSH.com
NS3Library