PC Review


Reply
Thread Tools Rate Thread

Convert UTC DateTime to Local Time (Not My Local Time)

 
 
Jonathan Wood
Guest
Posts: n/a
 
      31st Oct 2009
I have a DateTime value that represents a UTC time (DateTime). I also have a
UTC offset value (double) and a Daylight Savings Time value (bool) for a
local time. How best to calculate the local time from this data?

I've been searching the web for a while now. I've found a lot of interesting
new classes and various ways to approach this. But not one is dealing with
data in the form described above.

More Info:

I'm building a website where people can post comments. The date of each
comment is stored in the database as UTC time. My site also needs to track
which region each user is from. So my region table contains time zone
information which I need to apply to the UTC time. I'm opening to storing
different data types, etc. But I don't want to make this much more
complicated.

Thanks.

Jonathan


 
Reply With Quote
 
 
 
 
Jonathan Wood
Guest
Posts: n/a
 
      1st Nov 2009
I'm aware of that--I'm involved in that discussion. But it is not being
productive. So, if someone wants to weigh in here, why not let them?

> This question is already being discussed in the C# newsgroup...


Jonathan


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert stored UTC time to webuser's local time? Mark B Microsoft ASP .NET 1 24th Sep 2009 08:51 AM
Convert US Eastern Time to local .Net C# time? Mark B Microsoft C# .NET 1 9th Sep 2009 02:46 PM
convert UTC to local time(system time) and vice vesra in VB.NET deepak Microsoft ASP .NET 1 6th Feb 2008 02:34 PM
convert local time to another country time Salim Afsar Microsoft ASP .NET 2 16th Mar 2006 03:18 PM
Convert local time(eg EST) on local machine to GMT =?Utf-8?B?WE1MIG5ld2JpZTogVXJnZW50IHBscyBoZWxwIQ== Microsoft VB .NET 1 10th Mar 2006 08:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:23 AM.