Date Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets the date component of this instance.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

public DateTime Date { get; }

Property Value

Type: System..::..DateTime
A new object with the same date as this instance, and the time value set to 12:00:00 midnight (00:00:00).

The value of the Kind property of the returned DateTime value is the same as that of the current instance.

Because the DateTime type represents both dates and times in a single type, it is important to avoid misinterpreting a date returned by the Date property as a date and time. For more information, see "Saving and Restoring DateTime Values" in the DateTime topic.

Show: