I would like to capture date time in my SQL during a certain operation. This piece of data will be displayed to an ASP.NET page.
When displaying the date time, I want it converted to the local time zone equivalent as set in the user's operating system.
What setup do I need on the SQL and the coding in the ASP.NET page?
Thanks.The following MSDN article may help you to understand date & time and also avoid inherant problems when dealing with different time zones.
Best Practices Using DateTime in the .NET
Hope this helps
Regards
Wayne Phipps|||Hi Wayne,
Thanks. That's a great article on issues related to saving and computing date time when daylight saving is relevant.
I'm also looking for saving date time in one time zone, and then display the date time relevant to the target user's system. I managed to find a web site that's dedicated to addressing this issue, SimpleTimeZone .NET Framework Class (http://www.michaelbrumm.com/simpletimezone.html). However I have not evaluated the .NET class concerned.
Thanks again for your reply.
No comments:
Post a Comment