2016-09-05 5:17 GMT+02:00 Patrick B <patrickbakerbr@xxxxxxxxx>:
I actually need just the date 2016-08-10, without 00:00:00...You might want to share the version of PostgreSQL you are using.You might want to try date_trunc and AT TIMEZONE function/operators-SELECT date_trunc('day', tasks_start at TIME ZONE 'EST')Note: I have not tried this statementIs this something you are going to use often? If that is the case then consider to re-model your query. The moment you use an _expression_ on a column it would not use a normal BTree index.Hmm... I see....select date_trunc('day', TIMESTAMP '2016-08-10') FROM tasksAnd I get:2016-08-10 00:00:00
cast to date.
PostgreSQL timestamp shows time always.
Regards
Pavel
Any idea?CheersPatrick