scalar

DATE_PART

Extracts a temporal component as double precision in PostgreSQL. Example target: PostgreSQL 17. No tables or extensions required.

Formal Syntax & Structure

sql syntaxsql
DATE_PART(field,source)

Working Example

Example Snippetsql
SELECT date_part('month', DATE '2024-02-29');
SQL Reference