Version

HourPattern Property

Returns the pattern to use to display just hours
Syntax
'Declaration
 
Public Overridable ReadOnly Property HourPattern As String
public virtual string HourPattern {get;}

Property Value

The pattern used to format the hour portion of a time. By default this is created by parsing the LongTimePattern off DateTimeFormatInfo.
Remarks

Note: this pattern is used to determine whether dates are displayed in 12 or 24 hour format based on whether the pattern has an 'h' or 'H' character in it respectively.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also