DateTimeExtensionsIsWithin Method
Namespace: Ignition.Utility.ExtensionsAssembly: CatalystFire.Ignition (in CatalystFire.Ignition.dll) Version: 12.0.3454
public static bool IsWithin(
this DateTime dateToCheck,
DateTime? startDate,
DateTime? endDate,
DatePresentExpectation startDateExpectation = DatePresentExpectation.MayBeUnspecified,
DatePresentExpectation endDateExpectation = DatePresentExpectation.MayBeUnspecified
)
<ExtensionAttribute>
Public Shared Function IsWithin (
dateToCheck As DateTime,
startDate As DateTime?,
endDate As DateTime?,
Optional startDateExpectation As DatePresentExpectation = DatePresentExpectation.MayBeUnspecified,
Optional endDateExpectation As DatePresentExpectation = DatePresentExpectation.MayBeUnspecified
) As Boolean
public:
[ExtensionAttribute]
static bool IsWithin(
DateTime dateToCheck,
Nullable<DateTime> startDate,
Nullable<DateTime> endDate,
DatePresentExpectation startDateExpectation = DatePresentExpectation::MayBeUnspecified,
DatePresentExpectation endDateExpectation = DatePresentExpectation::MayBeUnspecified
)
[<ExtensionAttribute>]
static member IsWithin :
dateToCheck : DateTime *
startDate : Nullable<DateTime> *
endDate : Nullable<DateTime> *
?startDateExpectation : DatePresentExpectation *
?endDateExpectation : DatePresentExpectation
(* Defaults:
let _startDateExpectation = defaultArg startDateExpectation DatePresentExpectation.MayBeUnspecified
let _endDateExpectation = defaultArg endDateExpectation DatePresentExpectation.MayBeUnspecified
*)
-> bool
- dateToCheck DateTime
-
- startDate NullableDateTime
-
- endDate NullableDateTime
-
- startDateExpectation DatePresentExpectation (Optional)
-
- endDateExpectation DatePresentExpectation (Optional)
-
BooleanIn Visual Basic and C#, you can call this method as an instance method on any object of type
DateTime. 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).