I have a PostgreSQL timestamp as
2009-12-22 11:01:46
I need to change this to date as
2009-12-22
So that I ca
You can either use one of the Postgres date functions, such as date_trunc, or you could just cast it, like this:
SELECT timestamp '2009-12-22 11:01:46'::date >>> 2009-12-22