Re: BUG #1653: Bug in date - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #1653: Bug in date
Date
Msg-id 18433.1115412139@sss.pgh.pa.us
Whole thread Raw
In response to BUG #1653: Bug in date  ("Guilherme" <guilherme.silva@nexxera.com>)
List pgsql-bugs
Guilherme Silva <guilherme.silva@nexxera.com> writes:
> Negative, i know what the to_date do.

I don't think you do, because you are feeding it input that it will
ignore --- the hh/mm/ss fields are just being thrown away.

regression=# select to_date('01042005000000', 'ddmmyyyyHH24MISS');
  to_date
------------
 2005-04-01
(1 row)

regression=# select to_date('01042005235959', 'ddmmyyyyHH24MISS');
  to_date
------------
 2005-04-01
(1 row)


            regards, tom lane

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #1653: Bug in date
Next
From: "Llewellyn Falco"
Date:
Subject: request