Re: Strange? BETWEEN behaviour. - Mailing list pgsql-general

From vinny
Subject Re: Strange? BETWEEN behaviour.
Date
Msg-id db4369402c15ed4be767597095c4cbfe@xs4all.nl
Whole thread Raw
In response to Strange? BETWEEN behaviour.  (Bjørn T Johansen <btj@havleik.no>)
Responses Re: Strange? BETWEEN behaviour.  (Bjørn T Johansen <btj@havleik.no>)
List pgsql-general
On 2016-10-20 13:51, Bjørn T Johansen wrote:
> I have the following SQL:
>
> SELECT * from table WHERE date BETWEEN to_timestamp('20.10.2016
> 00:00:00','DD.MM.YYYY HH24:MI:SS') AND to_timestamp('20.10.2016
> 23:59:59','DD.MM.YYYY
> HH24:MI:SS')
>
> date is of type timestamp.
>
> I was expecting to get all the records that had datepart = 20.10.2016
> but I am not getting that..
>
> What am I missing?
>
>
> Regards,
>
> BTJ
>

What are you getting?


pgsql-general by date:

Previous
From: William Ivanski
Date:
Subject: Re: Strange? BETWEEN behaviour.
Next
From: Bjørn T Johansen
Date:
Subject: Re: Strange? BETWEEN behaviour.