PC Review


Reply
Thread Tools Rate Thread

Convert stored UTC time to webuser's local time?

 
 
Mark B
Guest
Posts: n/a
 
      24th Sep 2009
ASP.NET 3.5, VB.NET.

In ASP.NET, I have a DateTime variable which I assign from an SQL database
UTC Date field:

dtFirstMeetingDateTime (e.g. September 30, 2009 3:44:00 PM UTC)

I need to display this on a webpage in the webuser's format and time. They
can be anywhere and in any language around the world. E.g., I need to
display the string:

"30/09/2009 4:44:00 AM (New Zealand Daylight Time)"


If anyone can help with the code needed to do this I'd appreciate it a lot.


 
Reply With Quote
 
 
 
 
Alexey Smirnov
Guest
Posts: n/a
 
      24th Sep 2009
On Sep 24, 1:28*am, "Mark B" <none...@none.com> wrote:
> ASP.NET 3.5, VB.NET.
>
> In ASP.NET, I have a DateTime variable which I assign from an SQL database
> UTC Date field:
>
> dtFirstMeetingDateTime (e.g. September 30, 2009 3:44:00 PM UTC)
>
> I need to display this on a webpage in the webuser's format and time. They
> can be anywhere and in any language around the world. E.g., I need to
> display the string:
>
> "30/09/2009 4:44:00 AM (New Zealand Daylight Time)"
>
> If anyone can help with the code needed to do this I'd appreciate it a lot.


The easiest way is to show a list of available time zones (TZ) where
user can select one of them. Another approach could be to use js to
submit client time to the server where you could define client's TZ.
 
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 UTC DateTime to Local Time (Not My Local Time) Jonathan Wood Microsoft ASP .NET 1 1st Nov 2009 12:08 AM
Convert US Eastern Time to local .Net C# time? Mark B Microsoft C# .NET 1 9th Sep 2009 02:46 PM
Convert time stored as decimalised number to time format Emma Microsoft Excel New Users 1 29th Apr 2008 03:06 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 Pacific Time ECVerify.com Microsoft VB .NET 4 12th Jan 2004 01:58 PM


Features
 

Advertising
 

Newsgroups
 


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