Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TimeZone in C#?

Tags:

timezone

c#

.net

How to populate the timezone in a drop down box?

like image 302
Sunder Avatar asked Sep 16 '09 05:09

Sunder


People also ask

What is the time zone in C?

Charlie Time Zone is also commonly used at sea between longitudes 37.5° East and 52.5° East. The letter C may be used as a suffix to denote a time being in the Charlie Time Zone, such as 08:00C or 0800C. This is spoken as "zero eight hundred Charlie".

What is timezone format?

A time zone offset of "+hh:mm" indicates that the date/time uses a local time zone which is "hh" hours and "mm" minutes ahead of UTC. A time zone offset of "-hh:mm" indicates that the date/time uses a local time zone which is "hh" hours and "mm" minutes behind UTC.

How do you write a timezone?

Reference to a specific time and zone would follow standard guidelines with the zone in parentheses: 4:42 p.m. (PST), 11:03 a.m. (MDT), 2:30 p.m. (CST), 10:00 P.M. (EST). AP on the other hand advises to capitalize the full name of each time zone: Pacific/Mountain/Central/Eastern Standard Time.

What is timezone explain?

A time zone is an area that observes a uniform standard time for legal, commercial and social purposes. Time zones tend to follow the boundaries between countries and their subdivisions instead of strictly following longitude, because it is convenient for areas in frequent communication to keep the same time.


1 Answers

Winforms example:

myComboBox.DisplayMember = "DisplayName";
myComboBox.DataSource = TimeZoneInfo.GetSystemTimeZones();
like image 103
Fredrik Mörk Avatar answered Oct 10 '22 09:10

Fredrik Mörk