Click to See Complete Forum and Search --> : TimeZones
sinha
Nov 5th, 2007, 10:59 AM
Hi!
The users of my application span in diffrent countries. I am displaying couple of DateTime infos on a Grid, with NYC time (thats what stored in the database). But, they want to view those info, according to their Time Zones. How to accomplish this?
Thanks.
jmcilhinney
Nov 5th, 2007, 07:58 PM
The simple fact is that if you want use data in multiple time zones then it should be stored as UTC. You can then convert it to local time at each individual location.
.NET has no specific support for time zones other than to be able to convert between UTC and local time. There's no in-built way to switch to a specific time zone, so you're just going to have to perform a manual calculation. Someone created a TimeZoneInfo class and posted in the VB.NET CodeBank forum. You may find that helpful in that regard.
sinha
Nov 7th, 2007, 02:05 PM
Thanks
popskie
Nov 7th, 2007, 09:59 PM
If Im not wrong it could be posible in .net 3.5
jmcilhinney
Nov 7th, 2007, 11:17 PM
If Im not wrong it could be posible in .net 3.5I just had a quick look and there is indeed a TimeZoneInfo class in .NET 3.5. I'm guessing that VBDT's CodeBank submission mimics that.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.