system.date.isBefore
This function is used in Python Scripting.
Descriptionβ
Compares two dates to see if date_1 is before date_2.
Client Permission Restrictionsβ
This scripting function has no Client Permission restrictions.
Syntaxβ
system.date.isBefore(date_1, date_2)
Parametersβ
| Type | Parameter | Description |
|---|---|---|
| Date | date_1 | The first date. |
| Date | date_2 | The second date. |
Returnsβ
Boolean - True if date_1 is before date_2, false otherwise.
Scopeβ
Gateway, Vision Client, Perspective Session
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.