get day from date postgresql code example
Example 1: postgresql get year
select extract(year from your_column) from your_table;
Example 2: 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)