DateOptions.GetShortTimePattern method
Gets the format pattern for a short time value.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Function GetShortTimePattern ( _
hoursMode24 As Boolean _
) As String
'Usage
Dim instance As DateOptions
Dim hoursMode24 As Boolean
Dim returnValue As String
returnValue = instance.GetShortTimePattern(hoursMode24)
public string GetShortTimePattern(
bool hoursMode24
)
Parameters
hoursMode24
Type: System.Booleantrue to indicate that the time is displayed using a 24-hour clock; otherwise, false.
Return value
Type: System.String
The format pattern for a short time value.
Remarks
The format pattern for a short time value is “h:mm”.