For the complete documentation index, see llms.txt. This page is also available as Markdown.

Converting Date Strings Into Dates

This procedure converts date strings (text representations of dates) into date objects.

Syntax

the strings are {string}, {string}, {string}
the department's timezone is {timezone}
if the strings is not empty then
    filter the strings into the dates

Inputs

  1. string

    • A text representation of a date.

    • Example: 2024-04-01, April 2nd, 2023

  2. timezone

    • The timezone of the agent.

    • Example: EST, UTC

Example

the strings are "2024-10-01", "not a date", "October 22nd, 2024"
the department's timezone is "EST"
if the strings is not empty then
    filter the strings into the dates

📖 Results

  • 2024-10-01

  • 2024-01-01

Last updated

Was this helpful?