|
-
Nov 5th, 2007, 11:59 AM
#1
Thread Starter
Hyperactive Member
TimeZones
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.
-
Nov 5th, 2007, 08:58 PM
#2
Re: TimeZones
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.
-
Nov 7th, 2007, 03:05 PM
#3
Thread Starter
Hyperactive Member
-
Nov 7th, 2007, 10:59 PM
#4
Fanatic Member
Re: TimeZones
If Im not wrong it could be posible in .net 3.5
-
Nov 8th, 2007, 12:17 AM
#5
Re: TimeZones
 Originally Posted by popskie
If Im not wrong it could be posible in .net 3.5
I 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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|