Compartilhar via


SPRegionalSettings.Time24 Property

Gets or sets a Boolean value that specifies whether to use a 24-hour time format in representing the hours of the day.

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

Syntax

'Declaration
Public Property Time24 As Boolean
    Get
    Set
'Usage
Dim instance As SPRegionalSettings
Dim value As Boolean

value = instance.Time24

instance.Time24 = value
public bool Time24 { get; set; }

Property Value

Type: System.Boolean
true if the hours of the day are represented in 24-hour format; otherwise, false to display in 12 hour AM/PM format.

See Also

Reference

SPRegionalSettings Class

SPRegionalSettings Members

Microsoft.SharePoint Namespace