dateIsBetween
This function is used by Ignition's Expression language.
Description​
Compares two dates to see if a target date is between two other dates.
note
This is inclusive, meaning if the targetDate is the same as the start or end date the result is True.
Syntax​
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
- Bool - True if the targetDate is at or between the startDate and endDate, False if not.
Code Examples​
Code Snippet
dateIsBetween({Root Container.Calendar.date}, toDate("2016-06-12 00:00:00"), toDate("2016-06-19 00:00:00"))
//Will be true if the selected date of the calendar component is between the two dates