DateTime::Hour Property
Silverlight
Gets the hour component of the date represented by this instance.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
The value of the Hour property is always expressed using a 24-hour clock. To retrieve a string that represents the hour of a date and time using a 12-hour clock, call the DateTime::ToString(String) or DateTime::ToString(String, IFormatProvider) method with the "h" custom format specifier. For example:
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Community Additions
ADD
Show: