now - now()
today - timestamp 'today'
yesterday - timestamp 'yesterday'
day before yesterday - ('now'::date - 2)::timestamp
iterate over dates -
select date::date
from generate_series(date '2000-01-01',
date '2000-12-01',
interval '1 month')
as t(date);