Dates, Times, and Time Zones

In addition to the basic DateTime structure, the .NET Framework provides the following classes that support working with time zones:

  • TimeZone

    Use this class to work with the system's local time zone and the Coordinated Universal Time (UTC) zone. The functionality of the TimeZone class is largely superseded by the TimeZoneInfo class.

  • TimeZoneInfo

    Use this class to work with any time zone that is predefined on a system, to create new time zones, and to easily convert dates and times from one time zone to another. For new development, use the TimeZoneInfo class instead of the TimeZone class.

  • DateTimeOffset

    Use this structure to work with dates and times whose offset (or difference) from UTC is known. The DateTimeOffset structure combines a date and time value with that time's offset from UTC. Because of its relationship to UTC, an individual date and time value unambiguously identifies a single point in time. This makes a DateTimeOffset value more portable from one computer to another than a DateTime value.

This section of the documentation provides the information that you need to work with time zones and to create time zone-aware applications that can convert dates and times from one time zone to another.

In This Section

Reference

System.TimeZoneInfo