.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
 
Back
Top