Check Daylight Saving Time

G

Guest

Is there a way to check if the system is currently in Daylight Saving Time?
I'm trying to convert a DateTime from GMT to CST or CDT, but I'd like to be
able to figure out which at runtime. Thanks.
 
J

Jan Hyde

Warren <[email protected]>'s wild thoughts
were released on Tue, 19 Jul 2005 07:59:16 -0700 bearing the
following fruit:
Is there a way to check if the system is currently in Daylight Saving Time?
I'm trying to convert a DateTime from GMT to CST or CDT, but I'd like to be
able to figure out which at runtime. Thanks.

Read up on the DateTime.ToUniversalTime Method, that should
help.



Jan Hyde (VB MVP)
 
J

Jay B. Harlow [MVP - Outlook]

Warran,
As Jan suggests there Datetime has ToUniversalTime & ToLocalTime to convert
to & form GMT & local time (CST or CDT).

TimeZone has a IsDaylightSavingTime method that indicates if its Daylight
Saving Time. Which currently is only really useful for the Current TimeZone
(which the DateTime already does...).

Hope this helps
Jay


| Is there a way to check if the system is currently in Daylight Saving
Time?
| I'm trying to convert a DateTime from GMT to CST or CDT, but I'd like to
be
| able to figure out which at runtime. Thanks.
 

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