Click or drag to resize
DateTime Properties

The DateTime type exposes the following members.

Properties
  NameDescription
Public propertyDate
Gets the date component of this instance.
Public propertyDay
Gets the day of the month represented by this instance.
Public propertyDayOfWeek
Gets the day of the week represented by this instance.
Public propertyHour
Gets the hour component of the date represented by this instance.
Public propertyKind
Gets a value that indicates whether the time represented by this instance is based on local time, Coordinated Universal Time (UTC), or neither.
Public propertyMinute
Gets the minute component of the date represented by this instance.
Public propertyMonth
Gets the month component of the date represented by this instance.
Public propertyStatic memberNow
Gets a DateTime object that is set to the current date and time on this computer, expressed as the local time.
Public propertySecond
Gets the seconds component of the date represented by this instance.
Public propertyStatic memberUtcNow
Gets a DateTime object that is set to the current date and time on this computer, expressed as the Coordinated Universal Time (UTC).
Public propertyYear
Gets the year component of the date represented by this instance.
Top
See Also