Skip to main content
Version: 7.9

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

TypeParameterDescription
Datedate_1The first date.
Datedate_2The second date.

Returns

Bool - True (1) if date_1 is before date_2, false (0) otherwise.

Scope

All

Code Examples

Example #1
# 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.