[Yandex Cloud documentation](../../index.md) > [Yandex DataLens](../index.md) > Calculated fields > Function reference > Type conversion functions > DATETIME_PARSE

# DATETIME_PARSE



#### Syntax {#syntax}


```
DATETIME_PARSE( value )
```

#### Description {#description}
Converts the `value` expression to date and time format. Unlike [DATETIME](DATETIME.md), it supports multiple formats. The expression is processed on the ClickHouse® source side. For more information on the supported formats, see the relevant ClickHouse® [documentation](https://clickhouse.com/docs/en/sql-reference/functions/type-conversion-functions#parsedatetime32besteffort).

**Argument types:**
- `value` — `String`


**Return type**: `Datetime`

#### Examples {#examples}

```
DATETIME_PARSE("2019-01-02 03:04:05") = #2019-01-02 03:04:05#
```

```
DATETIME_PARSE("20190102030405") = #2019-01-02 03:04:05#
```

```
DATETIME_PARSE("20190102 030405") = #2019-01-02 03:04:05#
```

```
DATETIME_PARSE("2019.01.02 03:04:05") = #2019-01-02 03:04:05#
```

```
DATETIME_PARSE("02/01/2019 03:04:05") = #2019-01-02 03:04:05#
```

```
DATETIME_PARSE("2019-01-02 03:04") = #2019-01-02 03:04:00#
```

```
DATETIME_PARSE("2019-01-02 030405") = #2019-01-02 03:04:05#
```

```
DATETIME_PARSE("2019 Jan 02 03:04:05") = #2019-01-02 03:04:05#
```


#### Data source support {#data-source-support}

`ClickHouse 21.8`, `Files`, `Google Sheets`, `Yandex Documents`.