DateHelperDuration Method

Return a formatted printable Duration between two times.

Definition

Namespace: Html
Assembly: Html (in Html.dll) Version: 25.2822.3845
C#
public static string Duration(
	DateTime fromTime,
	DateTime toTime
)

Parameters

fromTime  DateTime
The Beginning Date / Time.
toTime  DateTime
The Ending Date / Time.

Return Value

String
Formatted string representing the number of Days, Hours, Minutes, and Seconds between the two times.

See Also