Export (0) Print
Expand All

DateTime.Date Property

Gets the date component of this instance.

[Visual Basic]
Public ReadOnly Property Date As DateTime
[C#]
public DateTime Date {get;}
[C++]
public: __property DateTime get_Date();
[JScript]
public function get Date() : DateTime;

Property Value

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

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

DateTime Structure | DateTime Members | System Namespace

Show:
© 2014 Microsoft