$expiry = re.capture($e.metadata.description, ".*will expire on (\\d{4}/\\d{2}/\\d{2})")
// $expiry = "2025/01/22"
Solved! Go to Solution.
There are two functions you can use to create dates via your own input.
timestamp.as_unix_seconds("2025-01-15 00:00:00","UTC")
The output of this is an integer. This allows you to use math operators to compare the event_timestamp.seconds to the converted int above.
Any date prior to the January 15th 2025 timestamp will be a lesser value.