DateTime Properties |
The DateTime type exposes the following members.
Name | Description | |
---|---|---|
Date | Gets the date component of this instance. | |
Day | Gets the day of the month represented by this instance. | |
DayOfWeek | Gets the day of the week represented by this instance. | |
Hour | Gets the hour component of the date represented by this instance. | |
Kind | Gets a value that indicates whether the time represented by this instance is based on local time, Coordinated Universal Time (UTC), or neither. | |
Minute | Gets the minute component of the date represented by this instance. | |
Month | Gets the month component of the date represented by this instance. | |
Now | Gets a DateTime object that is set to the current date and time on this computer, expressed as the local time. | |
Second | Gets the seconds component of the date represented by this instance. | |
UtcNow | Gets a DateTime object that is set to the current date and time on this computer, expressed as the Coordinated Universal Time (UTC). | |
Year | Gets the year component of the date represented by this instance. |