Re: BUG #1653: Bug in date

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Guilherme Silva <guilherme(dot)silva(at)nexxera(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #1653: Bug in date
Date: 2005-05-06 20:42:19
Message-ID: 18433.1115412139@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Guilherme Silva <guilherme(dot)silva(at)nexxera(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Llewellyn Falco 2005-05-07 03:41:40 request
Previous Message Guilherme Silva 2005-05-06 20:40:09 Re: BUG #1653: Bug in date