---
title: DATE type
description: The DATE type represents values with year, month, and day fields, without a time zone, in Databricks SQL and Databricks Runtime.
canonical_url: https://docs.databricks.com/aws/en/sql/language-manual/data-types/date-type
---

# `DATE` type

**Applies to:** ![check marked yes](https://docs.databricks.com/aws/en/images/icons/check.png) Databricks SQL ![check marked yes](https://docs.databricks.com/aws/en/images/icons/check.png) Databricks Runtime

Represents values comprising values of fields year, month, and day, without a time-zone.

## Syntax

```
DATE
```

## Limits

The range of dates supported is `June 23 -5877641 CE` to `July 11 +5881580 CE`.

## Literals

```
DATE dateString

dateString
{ '[+|-]yyyy[...]' |
  '[+|-]yyyy[...]-[m]m' |
  '[+|-]yyyy[...]-[m]m-[d]d' |
  '[+|-]yyyy[...]-[m]m-[d]d[T]' }
```

* `+` or `-`: An option sign. `-` indicates BCE, `+` indicates CE (default).
* `yyyy[...]`: Four digits that represent a year.
* `[m]m`: A one or two digit month between `01` and `12`.
* `[d]d`: A one or two digit day between `01` and `31`.
* `[T]`: An optional `T` character that separates the date from a time-of-day. Because a `DATE` value has no time component, a trailing `T` is allowed but ignored.

The prefix `DATE` is case insensitive.

If the literal does not represent a proper date Databricks raises an error.

## Examples

```sql
> SELECT DATE'0000';
  0000-01-01

> SELECT DATE'2020-12-31';
  2020-12-31

> SELECT DATE'2021-7-1T';
  2021-07-01

> SELECT cast('1908-03-15' AS DATE)
  1908-03-15

> SELECT DATE'-10000-01-01'
  -10000-01-01
```

## Related

* [`TIMESTAMP` type](https://docs.databricks.com/aws/en/sql/language-manual/data-types/timestamp-type.md)
* [`INTERVAL` type](https://docs.databricks.com/aws/en/sql/language-manual/data-types/interval-type.md)
* [`cast` function](https://docs.databricks.com/aws/en/sql/language-manual/functions/cast.md)
