System.DateTimeOffset.DateTime Property

Gets a DateTime value that represents the date and time of the current DateTimeOffset object.

Syntax

public DateTime DateTime { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The DateTimeOffset.DateTime property is not affected by the value of the DateTimeOffset.Offset property.

This property returns both the date and the time component of a DateTimeOffset object, which makes it useful for performing DateTimeOffset to DateTime conversion. For example, if the DateTimeOffset object has a date and time value of "1/12/07 4:01pm + 7:30", the property returns a date of "1/12/07 4:01pm".

The value of the DateTime.Kind property of the returned DateTime object is DateTimeKind.Unspecified.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0