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

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

Return Value

See Also