dateIsAfter
This function is used by Ignition's Expression language.
Description​
Compares two dates to see if date1 is after date2. This is exclusive, meaning if the dates are identical the result is always false.
Syntax​
dateIsAfter(date1, date2)
Parameters​
Type | Parameter | Description |
---|---|---|
Date | date1 | The first date to compare. |
Date | date2 | The second date to compare. |
Returns​
Boolean - Returns true if date1 is after date2. Returns false if date1 is the same as or before date2.
Examples​
Code Snippet
dateIsAfter(now(), toDate("2016-04-12 00:00:00"))
// Will be true if the current time is after April 12th, 2016 at midnight.