Skip to main content
Version: 8.1

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

    • Date date1 - The first date to compare.

    • Date date2 - The second date to compare

  • Results

    • Boolean - True if date1 is at or after date2; False if not.

Code 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.