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)

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.
Show: