Extracts hour from DateTime class and formats it for 12/24 hours clock.
Namespace: DayPilot.Web.Mvc.UtilsAssembly: DayPilot.Web.Mvc (in DayPilot.Web.Mvc.dll) Version: 8.0.5796.0 (8.0.5796.0)
Syntax
C# |
---|
public static string GetHour( DateTime time, TimeFormat clock, string format ) |
Visual Basic |
---|
Public Shared Function GetHour ( _ time As DateTime, _ clock As TimeFormat, _ format As String _ ) As String |
Visual C++ |
---|
public: static String^ GetHour( DateTime time, TimeFormat clock, String^ format ) |
Parameters
- time
- Type: System..::..DateTime
- clock
- Type: DayPilot.Web.Mvc.Enums..::..TimeFormat
- format
- Type: System..::..String