Export (0) Print
Expand All

DateTime Properties

The DateTime type exposes the following members.

  Name Description
Public property Supported by Silverlight for Windows Phone Supported by Xbox 360 Date Gets the date component of this instance.
Public property Supported by Silverlight for Windows Phone Supported by Xbox 360 Day Gets the day of the month represented by this instance.
Public property Supported by Silverlight for Windows Phone Supported by Xbox 360 DayOfWeek Gets the day of the week represented by this instance.
Public property Supported by Silverlight for Windows Phone Supported by Xbox 360 DayOfYear Gets the day of the year represented by this instance.
Public property Supported by Silverlight for Windows Phone Supported by Xbox 360 Hour Gets the hour component of the date represented by this instance.
Public property Supported by Silverlight for Windows Phone Supported by Xbox 360 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 Supported by Silverlight for Windows Phone Supported by Xbox 360 Millisecond Gets the milliseconds component of the date represented by this instance.
Public property Supported by Silverlight for Windows Phone Supported by Xbox 360 Minute Gets the minute component of the date represented by this instance.
Public property Supported by Silverlight for Windows Phone Supported by Xbox 360 Month Gets the month component of the date represented by this instance.
Public property Static member Supported by Silverlight for Windows Phone Supported by Xbox 360 Now Gets a DateTime object that is set to the current date and time on this computer, expressed as the local time.
Public property Supported by Silverlight for Windows Phone Supported by Xbox 360 Second Gets the seconds component of the date represented by this instance.
Public property Supported by Silverlight for Windows Phone Supported by Xbox 360 Ticks Gets the number of ticks that represent the date and time of this instance.
Public property Supported by Silverlight for Windows Phone Supported by Xbox 360 TimeOfDay Gets the time of day for this instance.
Public property Static member Supported by Silverlight for Windows Phone Supported by Xbox 360 Today Gets the current date.
Public property Static member Supported by Silverlight for Windows Phone Supported by Xbox 360 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 Supported by Silverlight for Windows Phone Supported by Xbox 360 Year Gets the year component of the date represented by this instance.
Top

Community Additions

ADD
Show:
© 2014 Microsoft