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)
Syntax
'Declaration
Public ReadOnly Property Date As DateTime
public DateTime Date { get; }
public:
property DateTime Date {
DateTime get ();
}
member Date : DateTime with get
function get Date () : DateTime
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).
Remarks
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.