Export (0) Print
Expand All

DateTime Properties

The DateTime type exposes the following members.

  NameDescription
Public property Date Gets the date component of this instance.
Public property Day Gets the day of the month represented by this instance.
Public property DayOfWeek Gets the day of the week represented by this instance.
Public property DayOfYear Gets the day of the year represented by this instance.
Public property Hour Gets the hour component of the date represented by this instance.
Public property Kind Gets a value that indicates whether the time represented by this instance is based on local time, Coordinated Universal Time (UTC), or neither.
Public property Millisecond Gets the milliseconds component of the date represented by this instance.
Public property Minute Gets the minute component of the date represented by this instance.
Public property Month Gets the month component of the date represented by this instance.
Public property Static member Now Gets a DateTime object that is set to the current date and time on this computer, expressed as the local time.
Public property Second Gets the seconds component of the date represented by this instance.
Public property Ticks Gets the number of ticks that represent the date and time of this instance.
Public property TimeOfDay Gets the time of day for this instance.
Public property Static member Today Gets the current date.
Public property Static member UtcNow Gets a DateTime object that is set to the current date and time on this computer, expressed as the Coordinated Universal Time (UTC).
Public property Year Gets the year component of the date represented by this instance.
Top

Community Additions

ADD
Show:
© 2014 Microsoft