# Converting Date Strings Into Dates

### **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`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.kognitos.com/legacy/legacy-experience/automation-areas/date-and-time/converting-date-strings-into-dates.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
