DateTime Properties
The properties of the DateTime structure are listed here. For a complete list of DateTime structure members, see the DateTime Members topic.
Public Properties
Date Supported by the .NET Compact Framework. | Gets the date component of this instance. |
Day Supported by the .NET Compact Framework. | Gets the day of the month represented by this instance. |
DayOfWeek Supported by the .NET Compact Framework. | Gets the day of the week represented by this instance. |
DayOfYear Supported by the .NET Compact Framework. | Gets the day of the year represented by this instance. |
Hour Supported by the .NET Compact Framework. | Gets the hour component of the date represented by this instance. |
Millisecond Supported by the .NET Compact Framework. | Gets the milliseconds component of the date represented by this instance. |
Minute Supported by the .NET Compact Framework. | Gets the minute component of the date represented by this instance. |
Month Supported by the .NET Compact Framework. | Gets the month component of the date represented by this instance. |
![]() Now Supported by the .NET Compact Framework. | Gets a DateTime that is the current local date and time on this computer. |
Second Supported by the .NET Compact Framework. | Gets the seconds component of the date represented by this instance. |
Ticks Supported by the .NET Compact Framework. | Gets the number of ticks that represent the date and time of this instance. |
TimeOfDay Supported by the .NET Compact Framework. | Gets the time of day for this instance. |
![]() Today Supported by the .NET Compact Framework. | Gets the current date. |
![]() UtcNow Supported by the .NET Compact Framework. | Gets a DateTime that is the current local date and time on this computer expressed as the coordinated universal time (UTC). |
Year Supported by the .NET Compact Framework. | Gets the year component of the date represented by this instance. |
