From: | simonw(at)cornfield(dot)org(dot)uk |
---|---|
To: | nabifadel(at)usj(dot)edu(dot)lb, pgsql-general(at)postgresql(dot)org |
Subject: | |
Date: | 2004-07-01 12:52:57 |
Message-ID: | 20040701125257.20BACD1B172@svr1.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Subject: Re: [GENERAL] Bug in function to_char() !!
Message-Id: <E1Bg0y0-0004mq-00(at)gaul(dot)cornfield(dot)org(dot)uk>
From: simonw(at)cornfield(dot)org(dot)uk
Date: Thu, 01 Jul 2004 13:47:04 +0100
Hi
Try
SELECT to_char('2005-03-27'::date,'YYYY/MM/DD');
I think you date format is wrong
Simon
---- Original Message ----
From: Najib Abi Fadel
Date: Thu 7/1/04 8:18
To: generalpost
Subject: [GENERAL] Bug in function to_char() !!
Hi, i am using PostgreSQL 7.3.2=20
there's a bug for the date '2005-03-27' !!!!!!!!!!!!!!!!!!!!!!!!!!!
SELECT to_char('2005-03-27'::date,'DD/MM/YYYY');
to_char
------------
26/03/2005
(1 row)
I get the date 26/03/2005 instead of 27/03/2005 !!!=20
For other dates the function works well !!
--=20
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Mailscanner thanks transtec Computers for their support.
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Mailscanner thanks transtec Computers for their support.
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2004-07-01 12:55:55 | Re: Problems restarting after database crashed (signal 11). |
Previous Message | Stefan Kaltenbrunner | 2004-07-01 12:48:36 | Re: Bug in function to_char() !! |