sql extract date from datetime example in postgres Example: postgresql today - 1 year select now() - INTERVAL '1 YEAR';