convert DateTime to UTC

  • Thread starter Thread starter John Grandy
  • Start date Start date
J

John Grandy

Does the .NET framework provide a method, provided a TimeZone instance and
DateTime in that TimeZone, returns corresponding UTC DateTime ?

If so, does this method work in all cases ? Especially considering the
recent US DST changes.
 
John,

Unfortunately, no. The next version of .NET should rectify this with
the new TimeZone2 class. However, right now, you have to perform those
calculations manually.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top