Connecting Tech Pros Worldwide Help | Site Map

Check Daylight Saving Time

Warren
Guest
 
Posts: n/a
#1: Jul 22 '05
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.
Jan Hyde
Guest
 
Posts: n/a
#2: Jul 22 '05

re: Check Daylight Saving Time


Warren <Warren@discussions.microsoft.com>'s wild thoughts
were released on Tue, 19 Jul 2005 07:59:16 -0700 bearing the
following fruit:
[color=blue]
>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.[/color]

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



Jan Hyde (VB MVP)

--
When some people go on a diet they have a gut reaction. (Mike Bull)

[Abolish the TV Licence - http://www.tvlicensing.biz/]

Warren
Guest
 
Posts: n/a
#3: Jul 22 '05

re: Check Daylight Saving Time


Thanks a bunch!

"Jan Hyde" wrote:
[color=blue]
> Warren <Warren@discussions.microsoft.com>'s wild thoughts
> were released on Tue, 19 Jul 2005 07:59:16 -0700 bearing the
> following fruit:
>[color=green]
> >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.[/color]
>
> Read up on the DateTime.ToUniversalTime Method, that should
> help.
>
>
>
> Jan Hyde (VB MVP)
>
> --
> When some people go on a diet they have a gut reaction. (Mike Bull)
>
> [Abolish the TV Licence - http://www.tvlicensing.biz/]
>
>[/color]
Jay B. Harlow [MVP - Outlook]
Guest
 
Posts: n/a
#4: Jul 22 '05

re: Check Daylight Saving Time


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


"Warren" <Warren@discussions.microsoft.com> wrote in message
news:26E23C13-2624-41E0-900D-9D08FCBBFDDF@microsoft.com...
| 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.


Closed Thread