This documentation is archived and is not being maintained.
DateTime Properties
Visual Studio 2008
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. |
|
DayOfYear | Gets the day of the year 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. |
|
Millisecond | Gets the milliseconds component of the date represented by this instance. |
|
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. |
|
Ticks | Gets the number of ticks that represent the date and time of this instance. |
|
TimeOfDay | Gets the time of day for this instance. |
|
Today | Gets the current date. |
|
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. |
Show: