Skip to main content
Version: 8.1


This function is used by Ignition's Expression language.


Compares two dates to see if a target date is between two other dates. This is inclusive, meaning if the targetDate is the same as the start or end date the result is true.


dateIsBetween(targetDate, startDate, endDate)

  • Parameters

    • Date targetDate - The date to compare.

    • Date startDate - The start of a date range.

    • Date endDate - The end of a date range. This date must be after the start date.

  • Results

    • Boolean - True if the targetDate is at or between the startDate and endDate; false if not.

Code Examples

Code Snippet
dateIsBetween(now(), toDate("2016-06-12 00:00:00"), toDate("2016-06-19 00:00:00"))
// Will be true if the current time is between the 12th and 19th of June 2016.