Click or drag to resize

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
)

Parameters

startDate
Type: SystemNullableDateTime
The start date.
endDate
Type: SystemNullableDateTime
The end date.

Return Value

Type: Int32

Usage 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