Skip to main content

FormattedDateToEpoch

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

Converts a custom-formatted timestamp to UNIX epoch time. Use it to convert custom time stamps to a XSOAR date field. If you pass formatter argument, we will use it to transform. If not, we will use dateparser.parse for transforming. For more info, see: https://docs.python.org/3.7/library/datetime.html#strftime-and-strptime-behavior

Script Data#


NameDescription
Script Typepython3
Tagstransformer, date
Cortex XSOAR Version5.0.0

Inputs#


Argument NameDescription
valueTime stamp to convert
formatterPython 'strptime' formatter string

Outputs#


There are no outputs for this script.