Re: RES: Dates rejected

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: carlos(dot)reimer(at)opendb(dot)com(dot)br
Cc: "Andreas Kretschmer" <akretschmer(at)spamfence(dot)net>, "Pgsql-General(at)Postgresql(dot)Org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: RES: Dates rejected
Date: 2006-10-16 18:27:26
Message-ID: 3743.1161023246@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Carlos H. Reimer" <carlos(dot)reimer(at)opendb(dot)com(dot)br> writes:
> select to_date('16/10/2006','DD/MM/YYYY');
> to_date
> ---------------------
> 2006-10-16 00:00:00
> (1 row)

Um... what have you done to to_date()? The standard version returns a
date, not a timestamp:

regression=# select to_date('15/10/2006','DD/MM/YYYY');
to_date
------------
2006-10-15
(1 row)

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Davis 2006-10-16 18:32:41 Re: Fast backup/restore
Previous Message J S B 2006-10-16 18:26:42 Re: Backup DB not getting connected