Skip to main content

BeforeRelativeDate

This Script is part of the Filters And Transformers Pack.#

Checks the given datetime has occurred before the provided relative time.

Script Data#


NameDescription
Script Typepython3
Tagsdate, filter, Condition
Cortex XSOAR Version5.0.0

Inputs#


Argument NameDescription
leftDate value to check - Can be any time format. ex. "2020-01-01T00:00:00"
rightRelative time ex. "6 months ago"

Outputs#


The script returns a boolean value (true or false) indicating if the date is before the relative time.