Extracts hour from DateTime class and formats it for 12/24 hours clock.

Namespace: DayPilot.Utils
Assembly: 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
)

Return Value

See Also