> For the complete documentation index, see [llms.txt](https://docs.tomat.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tomat.ai/data-transformation/formulas/date-and-time-functions/date.md).

# Date

Creates a date from a string based on the specified format

```mathematica
Date("18 Jan 2023",DateFormatTemplateOption.`dd*shortMonth*yyyy`) → 2023-01-18
Date("07 01 21",DateFormatTemplateOption.`MM*dd*yy`) → 2021-07-01
```

#### Inputs

`Date(string, [format])`

* `string` - A string that contains a date in a special format
* `[format]` - Format of the `string`, [**Supported Date and Time Parts**](https://www.notion.so/Supported-Date-and-Time-Parts-aa26c9f4116f47de903d49a19a5e4541?pvs=21), ex. DateFormatTemplateOption.`MM*dd*yy`
