Extract date (yyyy/mm/dd) from a timestamp in PostgreSQL Extract date (yyyy/mm/dd) from a timestamp in PostgreSQL postgresql postgresql