DateTime structure (windows.foundation.h)

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

Syntax

typedef struct DateTime {
  INT64 UniversalTime;
} DateTime;

Members

UniversalTime

Type: INT64

The number of 100-nanosecond intervals that have elapsed since 12:00:00 midnight on January 1, 1601 CE, UTC time.

Requirements

Requirement Value
Minimum supported client Windows 8
Minimum supported server Windows Server 2012
Header windows.foundation.h

See also

CreateDateTime

CreateDateTimeArray

IPropertyValue::GetDateTime

IPropertyValue::GetDateTimeArray