Skip to main content

Compare dates

Date & Time·v1.0.0
Date & TimeLow risk

Compare two dates to check if one is before, after, or equal to another

Inputs

NameTypeRequiredDefaultDescription
First Date
firstDate
expressionRequired
Comparison
comparison
enumRequiredis before
is beforeis afteris equal tois on or beforeis on or after
Second Date
secondDate
expressionRequired
Output Variable
outputVariable
variableOptionalCompareResult

Output

$outputVariableBoolean

True if the comparison is true, false otherwise

Compatibility

WindowsLinuxAttendedUnattended

Related activities