 | DateTimeExtensionsIsBefore Method |
Namespace: Ignition.Utility.ExtensionsAssembly: CatalystFire.Ignition (in CatalystFire.Ignition.dll) Version: 12.0.28229
Syntaxpublic static bool IsBefore(
this DateTime dateToCheck,
DateTime? endDate,
DatePresentExpectation endDateExpectation = DatePresentExpectation.AlwaysRequired
)
<ExtensionAttribute>
Public Shared Function IsBefore (
dateToCheck As DateTime,
endDate As DateTime?,
Optional endDateExpectation As DatePresentExpectation = DatePresentExpectation.AlwaysRequired
) As Boolean
public:
[ExtensionAttribute]
static bool IsBefore(
DateTime dateToCheck,
Nullable<DateTime> endDate,
DatePresentExpectation endDateExpectation = DatePresentExpectation::AlwaysRequired
)
[<ExtensionAttribute>]
static member IsBefore :
dateToCheck : DateTime *
endDate : Nullable<DateTime> *
?endDateExpectation : DatePresentExpectation
(* Defaults:
let _endDateExpectation = defaultArg endDateExpectation DatePresentExpectation.AlwaysRequired
*)
-> bool Parameters
- dateToCheck DateTime
-
- endDate NullableDateTime
-
- endDateExpectation DatePresentExpectation (Optional)
-
Return Value
BooleanUsage Note
In 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).
See Also