Skip to main content
Version: 8.1


This function is used by Ignition's Expression language.


Compares two dates to see if date1 is before date2. This is exclusive, meaning if the dates are identical the result is always false.


dateIsBefore(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 before date2; False if not.

Code Examples

Code Snippet
dateIsBefore(now(), toDate("2016-04-12 00:00:00"))
// Will be true if the current time is before April 12th, 2016 at midnight.