LogoLogo
About
  • Home
  • Guides
  • BDK
  • REST API
  • Date and Time
    • Overview
  • Getting Dates and Times
  • Sorting Dates
  • Conversions
    • Text To Date
    • Date Strings to Dates
    • Date Strings to Different Formats
Powered by GitBook
On this page
  • Syntax
  • Inputs
  • Example

Was this helpful?

Export as PDF
  1. Conversions

Date Strings to 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 1 month ago

Was this helpful?