# date {#date}

## Syntax {#syntax}

`date(X)`

## Arguments {#arguments}

**X** is an integer or temporal scalar/vector.

## Details {#details}

Convert *X* into DATE type.

## Examples {#examples}

```
date 2012.12.03 01:22:01;
// output: 2012.12.03

date(2016.03M);
// output: 2016.03.01

date(1);
// output: 1970.01.02
```

Related functions: [second](../s/second.md), [minute](../m/minute.md), [month](../m/month.md), [hour](../h/hour.md), [year](../y/year.md)

