PQSQL NOW + 1 cday code example
Example 1: today minus 15 days postgresql
--yesterday
SELECT NOW() - INTERVAL '1 DAY';
--Unrelated to the question, but PostgreSQL also supports some shortcuts:
SELECT 'yesterday'::TIMESTAMP, 'tomorrow'::TIMESTAMP, 'allballs'::TIME;
Example 2: postgresql today - 1 year
select now() - INTERVAL '1 YEAR';