DateOptions.GetShortTimePattern Method

Gets the format pattern for a short time value.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

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.Boolean

    true 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”.

See Also

Reference

DateOptions Class

DateOptions Members

Microsoft.SharePoint.Utilities Namespace