> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-mintlify-3a82795f.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> Documentation for the Date32 data type in ClickHouse, which stores dates with an extended range compared to Date

# Date32

A date. Supports the date range same with [DateTime64](/reference/data-types/datetime64). Stored as a signed 32-bit integer in native byte order with the value representing the days since `1900-01-01`. **Important!** 0 represents `1970-01-01`, and negative values represent the days before `1970-01-01`.

**Examples**

Creating a table with a `Date32`-type column and inserting data into it:

```sql theme={null}
CREATE TABLE dt32
(
    `timestamp` Date32,
    `event_id` UInt8
)
ENGINE = TinyLog;
```

```sql theme={null}
-- Parse Date
-- - from string,
-- - from 'small' integer interpreted as number of days since 1970-01-01, and
-- - from 'big' integer interpreted as number of seconds since 1970-01-01.
INSERT INTO dt32 VALUES ('2100-01-01', 1), (47482, 2), (4102444800, 3);

SELECT * FROM dt32;
```

```text theme={null}
┌──timestamp─┬─event_id─┐
│ 2100-01-01 │        1 │
│ 2100-01-01 │        2 │
│ 2100-01-01 │        3 │
└────────────┴──────────┘
```

**See Also**

* [toDate32](/reference/functions/regular-functions/type-conversion-functions#toDate32)
* [toDate32OrZero](/reference/functions/regular-functions/type-conversion-functions#toDate32OrZero)
* [toDate32OrNull](/reference/functions/regular-functions/type-conversion-functions#toDate32OrNull)
