Training
Module
Get Started with Dates, Times, and Time Zones - Training
Learn how to handle date and time effectively in C# applications.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
These functions create and manipulate datetimezone values.
Name | Description |
---|---|
DateTimeZone.FixedLocalNow | Returns a DateTimeZone value set to the current date, time, and timezone offset on the system. |
DateTimeZone.FixedUtcNow | Returns the current date and time in UTC (the GMT timezone). |
DateTimeZone.From | Returns a datetimezone value from a value. |
DateTimeZone.FromFileTime | Returns a DateTimeZone from a number value. |
DateTimeZone.FromText | Creates a datetimezone from local, universal, and custom datetimezone formats. |
DateTimeZone.LocalNow | Returns a DateTime value set to the current system date and time. |
DateTimeZone.RemoveZone | Returns a datetime value with the zone information removed from the input datetimezone value. |
DateTimeZone.SwitchZone | Changes the timezone information for the input DateTimeZone. |
DateTimeZone.ToLocal | Returns a DateTime value from the local time zone. |
DateTimeZone.ToRecord | Returns a record containing parts of a DateTime value. |
DateTimeZone.ToText | Returns a text value from a DateTime value. |
DateTimeZone.ToUtc | Returns a DateTime value to the Utc time zone. |
DateTimeZone.UtcNow | Returns a DateTime value set to the current system date and time in the Utc timezone. |
DateTimeZone.ZoneHours | Gets the timezone hour of the value. |
DateTimeZone.ZoneMinutes | Gets the timezone minute of the value. |
#datetimezone | Creates a datetimezone value from year, month, day, hour, minute, second, offset-hours, and offset-minutes. |
Training
Module
Get Started with Dates, Times, and Time Zones - Training
Learn how to handle date and time effectively in C# applications.