How do I convert timezone from this format "03/03/2010 03:24:42 PM EST" to the current timezone in asp.net?
A:
You're probably looking for the DateTime.ParseExact method. In general there's a lot of info on MSDN on this, check it out.
Or, wait-a-minute: The timezone in your example is "EST" -> Eastern Standard Time -> UTC -5. Is it really that simple?
Jakob Gade
2010-05-15 02:20:57
A:
The details for converting from time zones can actually be ridiculously complicated, primarily because of daylight savings adjustment rules being different in different places, and different historical adjustment rules being applicable based on the date.
Fortunately there is an api method that claims to do all the difficult calculations for you: System.TimeZoneInfo.ConvertTime
Travis Brooks
2010-05-15 22:33:03