PostgreSQL 18 reference · Date and Time Functions
PostgreSQL MAKE_DATE() Function
Build a date from year, month and day numbers. make_timestamp() and make_time() do the same for other types.
PostgreSQL 18 Since 9.4
Syntax
make_date(year, month, day)
Parameters
| Parameter | Description |
|---|---|
year, month, day |
Integers. |
Return value
date.
Examples
SELECT make_date(2026, 3, 9) AS d;
Output
d ------------ 2026-03-09 (1 row)
Run this on your computer — see “Get Started” for setup.
SELECT make_date(2026, m, 1) AS month_start
FROM generate_series(1, 3) AS m;
Output
month_start ------------- 2026-01-01 2026-02-01 2026-03-01 (3 rows)
Run this on your computer — see “Get Started” for setup.
Version history
| Version | Change |
|---|---|
| PostgreSQL 9.4 | Added |
Related
MAKE_INTERVAL()· Build an interval from named parts, such as make_interval(days => 10, hours => 2).TO_DATE()· Parse text into a date using a format pattern, such as to_date('09/03/2026', 'DD/MM/YYYY').- SQL Date Functions · tutorial