how to get the current date in postgresql code example Example: postgresql date = today Select * from table where col_date::date = now()::date;