Answers for "postgres get current day of month"

SQL
0

postgres extract day from date

SELECT EXTRACT(DAY FROM TIMESTAMP '2016-12-31 13:30:15');Code language: PostgreSQL SQL dialect and PL/pgSQL (pgsql)
Posted by: Guest on May-26-2021
0

postgresql get last day of month

create function end_of_month(date)
returns date as
$$
select (date_trunc('month', $1) + interval '1 month' - interval '1 day')::date;
$$ language 'sql'
immutable strict;
Posted by: Guest on March-05-2021

Code answers related to "postgres get current day of month"

Code answers related to "SQL"

Browse Popular Code Answers by Language