The properties of the DateTime structure are listed below. For a complete list of DateTime structure members, see the DateTime Members topic.
Date | Retrieves the date of the instance with the time value set to midnight. |
Day | Retrieves the day of the month represented by this instance. |
DayOfWeek | Retrieves the day of the week represented by this instance. |
DayOfYear | Retrieves the day of the year represented by this instance. |
Hour | Retrieves the hour part represented by this instance. |
Millisecond | Retrieves the millisecond part represented by this instance. |
Minute | Retrieves the minute represented by this instance. |
Month | Retrieves the month represented by this instance. |
Now | Retrieves a DateTime representing the current date and time. |
Second | Retrieves the second's part of this instance. |
Ticks | Retrieves the 100-nanosecond tick count for this instance. |
TimeOfDay | Retrieves the time of day for this instance. |
Today | Retrieves the current date. |
Year | Retrieves the year part of this instance. |