system.date.isBefore
This feature is new in Ignition version 7.8.1
Description
Compares to dates to see if date_1 is before date_2.
Syntax
system.date.isBefore (date_1, date_2 )
-
Parameters
Date date_1 - The first date.
Date date_2 - The second date.
-
Returns
Bool - True (1) if date_1 is before date_2, false (0) otherwise.
-
Scope
All
Code Examples
Code Snippet
#This will compare if the first date is before the second date, which it is not.
first
=
system.date.getDate(
2018
,
4
,
28
)
second
=
system.date.getDate(
2018
,
3
,
22
)
print
system.date.isBefore(first, second)
#Will print false.