UtilDateTimeDateDiff Method
Calculates the difference between two dates.
Namespace: DevCase.Core.DateAndTimeAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static TimeSpan DateDiff(
DateTime startDate,
DateTime endDate
)
Public Shared Function DateDiff (
startDate As DateTime,
endDate As DateTime
) As TimeSpan
Dim startDate As DateTime
Dim endDate As DateTime
Dim returnValue As TimeSpan
returnValue = UtilDateTime.DateDiff(startDate,
endDate)
public:
static TimeSpan DateDiff(
DateTime startDate,
DateTime endDate
)
static member DateDiff :
startDate : DateTime *
endDate : DateTime -> TimeSpan
No code example is currently available or this language may not be supported.
- startDate DateTime
-
The start date.
- endDate DateTime
-
The end date.
TimeSpan
A
TimeSpan that contains the time difference.
This is a code example.
No code example is currently available or this language may not be supported.
Dim date1 As Date = Date.Now
Dim date2 As Date = Date.Now.AddHours(1)
Dim diff As TimeSpan = UtilDateTime.DateDiff(date1, date2)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.