Extracts hour from DateTime class and formats it for 12/24 hours clock.
Namespace: DayPilot.UtilsAssembly: DayPilot (in DayPilot.dll) Version: 8.1.3443.0 (8.1.3443.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.Ui.Enums..::..TimeFormat
- format
- Type: System..::..String