# TODATE

TODATE( `text`, `[format]` )&#x20;

Convert text into a date/time value

### Arguments

| Argument   | Description                                                                                                                                                            |
| ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `text`     | Text to convert to date                                                                                                                                                |
| `[format]` | Optional: strftime format of `text`. See strftime documentation for more information: <https://docs.python.org/3/library/datetime.html#strftime-and-strptime-behavior> |

### Output

Date/time object corresponding to `text`

### Examples

```
TODATE("2015-12-22")
>> 12/22/2015
```
