How to get "Date-Time-Zone"
-
Need to format the date-time in the current format:
Thu, 15 Apr 2010 03:23:58 -0700
where you can see the
date
, thetime
and finally thezone indication
. I've no problem with the first 2 fields: I'm correcly using a combination of the functions:GetSystemTime GetDateFormat GetTimeFormat
Now. How can I get (from the system) and then add (to the string) the zone?
Russell
-
Need to format the date-time in the current format:
Thu, 15 Apr 2010 03:23:58 -0700
where you can see the
date
, thetime
and finally thezone indication
. I've no problem with the first 2 fields: I'm correcly using a combination of the functions:GetSystemTime GetDateFormat GetTimeFormat
Now. How can I get (from the system) and then add (to the string) the zone?
Russell
-
Need to format the date-time in the current format:
Thu, 15 Apr 2010 03:23:58 -0700
where you can see the
date
, thetime
and finally thezone indication
. I've no problem with the first 2 fields: I'm correcly using a combination of the functions:GetSystemTime GetDateFormat GetTimeFormat
Now. How can I get (from the system) and then add (to the string) the zone?
Russell
Use GetTimeZoneInformation, Check the return code (this will tell you which bias to use), display StandardBias or DayLightBias