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

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

# Date32

날짜 데이터 타입입니다. [DateTime64](/ko/reference/data-types/datetime64)와 동일한 날짜 범위를 지원합니다. 값은 `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}
-- 날짜 파싱
-- - 문자열로부터,
-- - 1970-01-01 이후 경과 일수로 해석되는 '작은' 정수로부터,
-- - 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](/ko/reference/functions/regular-functions/type-conversion-functions#toDate32)
* [toDate32OrZero](/ko/reference/functions/regular-functions/type-conversion-functions#toDate32OrZero)
* [toDate32OrNull](/ko/reference/functions/regular-functions/type-conversion-functions#toDate32OrNull)
