Samples
Calculate how many days in the month of January 1, 2022:Arguments
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
date | TIMESTAMPTZ | - | ✔ | Timestamp to use to calculate how many days in the month |
Calculates days in month given a timestamptz
SELECT days_in_month('2021-01-01 00:00:00+03'::timestamptz)
days_in_month
---------------------
31
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
date | TIMESTAMPTZ | - | ✔ | Timestamp to use to calculate how many days in the month |
Was this page helpful?