current date postgresql code example
Example 1: postgresql date = today
Select * from table where col_date::date = now()::date;
Example 2: postgresql today - 1 year
select now() - INTERVAL '1 YEAR';
Select * from table where col_date::date = now()::date;
select now() - INTERVAL '1 YEAR';