> ## Documentation Index
> Fetch the complete documentation index at: https://clickhouse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> Date보다 확장된 범위를 지원하는 ClickHouse의 Date32 데이터 타입 문서

# Date32

날짜 데이터 타입입니다. `1900-01-01`부터 `2299-12-31`까지의 날짜 범위를 지원합니다. 값은 `1900-01-01` 이후의 일 수를 나타내며, 네이티브 바이트 순서의 부호 있는 32비트 정수로 저장됩니다. **중요!** 0은 `1970-01-01`을 나타내고, 음수 값은 `1970-01-01` 이전의 일 수를 나타냅니다.

**예시**

`Date32` 타입 컬럼이 있는 테이블을 생성하고 데이터를 삽입합니다:

```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 │
└────────────┴──────────┘
```

**관련 항목**

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