DateHelperDuration Method
Return a formatted printable Duration between two times.
Namespace: HtmlAssembly: Html (in Html.dll) Version: 25.2822.3845
public static string Duration(
DateTime fromTime,
DateTime toTime
)
Public Shared Function Duration (
fromTime As DateTime,
toTime As DateTime
) As String
No code example is currently available or this language may not be supported.
- fromTime DateTime
-
The Beginning Date / Time.
- toTime DateTime
-
The Ending Date / Time.
String
Formatted string representing the number of Days, Hours, Minutes, and
Seconds between the two times.