Daylight saving time

M

maflatoun

Hi everyone,

I have 3 different time zones that I'm working with. Basically
converting from UTC to those 3 time zones.

Eastern Daylight Time (GMT -04:00, New York)
Central Daylight Time (GMT -05:00, Chicago)
Pacific Daylight Time (GMT -07:00, San Francisco)

Using C# I know how to detect if Daylight saving time is applied or not
for Eastern Time (Local) but how do I that for Central Time and Pacific
Time?

How can I use 'localZone.IsDaylightSavingTime' for Central and Pacific
time to see if Daylight Saving applies or not? If DaylightSavingTime
is false for Eastern does that mean it's false for Central?


Thanks
Maz.
 
K

Kevin Spencer

Here's what the documentation says:

Return Value
true if Kind is Local or Unspecified and the value of this instance of
DateTime is within the Daylight Saving Time range for the current time zone.
false if Kind is Utc.

--
HTH,

Kevin Spencer
Microsoft MVP
Chicken Salad Shooter
http://unclechutney.blogspot.com

A man, a plan, a canal, a palindrome that has.. oh, never mind.
 

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

Top