Skip to content

GetWindowsDateTimePattern ​

cs
var pattern = DateTimeHelper.GetWindowsDateTimePattern(DateTimePattern.ShortTime);
// hh:mm tt Or HH:mm

Is24HourFormat ​

cs
bool is24Hour = Is24HourFormat.Is24HourFormat();

Demo ​

you can run demo and see this feature.

Released under the MIT License.