postgresql datetime to date code example
Example 1: postgresql today - 1 year
select now() - INTERVAL '1 YEAR';
Example 2: postgresql get date from datetime
SELECT DATE(column_name) FROM table_name;
select now() - INTERVAL '1 YEAR';
SELECT DATE(column_name) FROM table_name;