.NET 3.5 - difference of time

  • Thread starter Thread starter bim-bom
  • Start date Start date
B

bim-bom

Hi,
I wanted to count the difference between my current time zone and New
York time. How to do it (I don't want to hardcode it)? I see that there
is a TimeZoneInfo class, but I don't know how to get a TimeZoneInfo for
NY time.

Julek
 
bim-bom said:
I wanted to count the difference between my current time zone and New
York time. How to do it (I don't want to hardcode it)? I see that there
is a TimeZoneInfo class, but I don't know how to get a TimeZoneInfo for
NY time.

TimeZoneInfo.FindSystemTimeZoneById("Eastern Standard Time");

will find New York.

Arne
 

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