Better Date Manipulation in PostgreSQL Queries Use interval and date_trunc to make working with SQL dates easier.