Hi,
I want to get the GMT time of the system.how to find it?
I tried in 2 ways.here below i am writing the the way through which i tried
TimeZone.CurrentTimeZone.GetUtcOffset(Date.Now).ToString()
DateTime.Now.ToString("zzz")
I tested the above functions by changing the TimeZones of my system clock.
in these both ways i got the GMT time.but here i am facing once problem.its giving correct GMT time for some Time zones.but not in many of the time zones.here below i am mentioning some of those zones fo which GMT time not came correctly.
(GMT-09:00) Alaska
(GMT-08:00) Pacific Time
(GMT-07:00) Chihuahua, La Paz, Mazatlan-New
(GMT-07:00) Chihuahua, La Paz, Mazatlan-Old
(GMT-07:00) Mountain Time (US & CANADA)
(GMT-06:00) cENTRAL tIME (US & canada)
(GMT-06:00) Guadalajara,Mexico City,Monterrey-New
(GMT-06:00) Guadalajara,Mexico City,Monterrey-old
ist any way to find the GMT time exactly??
I want to get the GMT time of the system.how to find it?
I tried in 2 ways.here below i am writing the the way through which i tried
TimeZone.CurrentTimeZone.GetUtcOffset(Date.Now).ToString()
DateTime.Now.ToString("zzz")
I tested the above functions by changing the TimeZones of my system clock.
in these both ways i got the GMT time.but here i am facing once problem.its giving correct GMT time for some Time zones.but not in many of the time zones.here below i am mentioning some of those zones fo which GMT time not came correctly.
(GMT-09:00) Alaska
(GMT-08:00) Pacific Time
(GMT-07:00) Chihuahua, La Paz, Mazatlan-New
(GMT-07:00) Chihuahua, La Paz, Mazatlan-Old
(GMT-07:00) Mountain Time (US & CANADA)
(GMT-06:00) cENTRAL tIME (US & canada)
(GMT-06:00) Guadalajara,Mexico City,Monterrey-New
(GMT-06:00) Guadalajara,Mexico City,Monterrey-old
ist any way to find the GMT time exactly??