postgresql last 12 months from 31/05 code example Example: last 6 months postgresql CURRENT_DATE - INTERVAL '6 months'