DateTime Properties

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

The DateTime type exposes the following members.

Properties

  Name Description
Public propertySupported by Silverlight for Windows PhoneSupported by Xbox 360 Date Gets the date component of this instance.
Public propertySupported by Silverlight for Windows PhoneSupported by Xbox 360 Day Gets the day of the month represented by this instance.
Public propertySupported by Silverlight for Windows PhoneSupported by Xbox 360 DayOfWeek Gets the day of the week represented by this instance.
Public propertySupported by Silverlight for Windows PhoneSupported by Xbox 360 DayOfYear Gets the day of the year represented by this instance.
Public propertySupported by Silverlight for Windows PhoneSupported by Xbox 360 Hour Gets the hour component of the date represented by this instance.
Public propertySupported by Silverlight for Windows PhoneSupported 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 propertySupported by Silverlight for Windows PhoneSupported by Xbox 360 Millisecond Gets the milliseconds component of the date represented by this instance.
Public propertySupported by Silverlight for Windows PhoneSupported by Xbox 360 Minute Gets the minute component of the date represented by this instance.
Public propertySupported by Silverlight for Windows PhoneSupported by Xbox 360 Month Gets the month component of the date represented by this instance.
Public propertyStatic memberSupported by Silverlight for Windows PhoneSupported 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 propertySupported by Silverlight for Windows PhoneSupported by Xbox 360 Second Gets the seconds component of the date represented by this instance.
Public propertySupported by Silverlight for Windows PhoneSupported by Xbox 360 Ticks Gets the number of ticks that represent the date and time of this instance.
Public propertySupported by Silverlight for Windows PhoneSupported by Xbox 360 TimeOfDay Gets the time of day for this instance.
Public propertyStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Today Gets the current date.
Public propertyStatic memberSupported by Silverlight for Windows PhoneSupported 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 propertySupported by Silverlight for Windows PhoneSupported by Xbox 360 Year Gets the year component of the date represented by this instance.

Top