DateTime Structure

Represents an instant in time, typically expressed as a date and time of day.

Syntax

public value struct DateTime  

Remarks

For positive values, a DateTime.UniversalTime value is identical to a FILETIME value although it can only represent dates up to about 29000 C.E. A negative value represents the number of intervals prior to January 1, 1601 and can represent dates back to about 27,400 B.C.E.

To convert the UniversalTime to SYSTEMTIME, use ULARGE_INTEGER to convert the int64 value to FILETIME, then use FileTimeToSystemTime to get SYSTEMTIME.

Requirements

Namespace: Windows.Foundation

Metadata: windows.winmd

See also

Reference

DateTime Members

Windows.Foundation Namespace