Oct
02
2010
ValueConverter example for TimeZones
Just added another Wiki article on how to store your Dates as UTC and display them as Local time in your apps (with two way binding, as in you pass a Local Time and it will be stored as UTC)
http://wiki.alfware.com.au/XPO+-+Store+dates+in+database+as+UTC+display+in+Local+Time
Hope this helps someone at some stage
Latest Comments
- Simple Collection to...
Hey Norman, Keep in mind that Baritem ar... More... - Simple Collection to...
Great many thanks - this said, I'm looki... More... - Simple Collection to...
I just checked my class here and it stil... More... - Simple Collection to...
I'm using Winform DevExpress Library - a... More... - XPO ObjectLayer Tuto...
Cheers Glen, I have held off continuing ... More...






Comments
You have just re-inforced why the Wiki will be handy ;) Yes in the DevExpress.Xpo.MetaData namespace there is a UtcDateTimeConv erter which does what this does ;) I just keep forgetting the bugger is in there
Will update the Wiki to use the inbuilt converter. thanks for reminding me (again)
However for the purpose of that Article I will change it to say to use the XPO Inbuilt one for a simple UTC to Local converter, but show how you can make your own converter and specify a UTC Offset. ;) more work to be done
RSS feed for comments to this post.