- Documentation
- Activities
- Date & Time
- Compare dates
Compare two dates to check if one is before, after, or equal to another
Inputs
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
First Date firstDate | expression | Required | — | — |
Comparison comparison | enum | Required | is before | —is beforeis afteris equal tois on or beforeis on or after |
Second Date secondDate | expression | Required | — | — |
Output Variable outputVariable | variable | Optional | CompareResult | — |
Output
$outputVariableBooleanTrue if the comparison is true, false otherwise
Compatibility
WindowsLinuxAttendedUnattended
Related activities
Add to datetime
Add days, months, or years to a date
Convert timezone
Convert a date/time from one timezone to another
Format date
Convert a date to a formatted text string
Get current date and time
Get today's date and the current time
Get date part
Extract a specific part from a date (year, month, day, etc.)
Get start/end of period
Get the first or last day of a week, month, quarter, or year