NullableDateHelperGetDurationInDays Method |
Retrieves the date range in days between 2 dates accounting for nulls.
Namespace:
Xcalibur.Helpers
Assembly:
Xcalibur.Helpers (in Xcalibur.Helpers.dll) Version: 1.0.1.0 (1.0.1.0)
Syntax public static int GetDurationInDays(
this Nullable<DateTime> startDate,
Nullable<DateTime> endDate
)
<ExtensionAttribute>
Public Shared Function GetDurationInDays (
startDate As Nullable(Of DateTime),
endDate As Nullable(Of DateTime)
) As Integer
public:
[ExtensionAttribute]
static int GetDurationInDays(
Nullable<DateTime> startDate,
Nullable<DateTime> endDate
)
[<ExtensionAttribute>]
static member GetDurationInDays :
startDate : Nullable<DateTime> *
endDate : Nullable<DateTime> -> int
Parameters
- startDate
- Type: SystemNullableDateTime
The start date. - endDate
- Type: SystemNullableDateTime
The end date.
Return Value
Type:
Int32Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
NullableDateTime. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also