This function is used in Python Scripting.


Compares two dates to see if date_1 is before date_2.

Client Permission Restrictions

This scripting function has no Client Permission restrictions.

Syntax, date_2)

  • Parameters

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 checks to see if the first date is before the second date, which it is not.
first =, 4, 28)
second =, 3, 22)
print, second) #Will print false.

system date isBefore, date.isBefore