> For the complete documentation index, see [llms.txt](https://docs.kognitos.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kognitos.com/legacy/legacy-experience/automation-areas/date-and-time/converting-date-strings-into-dates.md).

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