DateTime::Date Property
Silverlight
Gets the date component of this instance.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Property Value
Type: System::DateTimeA new object that has the same date as this instance, and its time value set to 12:00:00 midnight (00:00:00).
The following example uses the Date property to extract the date component of a DateTime value with its time component set to zero (or 0:00:00, or midnight). It also illustrates that, depending on the format string used when displaying the DateTime value, the time component can continue to appear in formatted output.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Community Additions
ADD
Show: