Re: [SQL] to_date function

2007-09-07 Thread A. Kretschmer
am Fri, dem 07.09.2007, um 10:25:57 -0400 mailte Tom Lane folgendes: > "A. Kretschmer" <[EMAIL PROTECTED]> writes: > > am Fri, dem 07.09.2007, um 17:22:30 +1200 mailte anru chen folgendes: > >> seems like "to_date" function only work correctly for current month. > > > No, seems like to_char only

Re: [SQL] to_date function

2007-09-07 Thread Tom Lane
"A. Kretschmer" <[EMAIL PROTECTED]> writes: > am Fri, dem 07.09.2007, um 17:22:30 +1200 mailte anru chen folgendes: >> seems like "to_date" function only work correctly for current month. > No, seems like to_char only work corrently if the length of the month > correctly... You need to use FMMon

Re: [SQL] to_date function

2007-09-06 Thread A. Kretschmer
am Fri, dem 07.09.2007, um 17:22:30 +1200 mailte anru chen folgendes: > Hi all: > > i am use postgres 8.2 on windows XP, following select statement > > "select to_date('10 August 2007','DD Month ');" > return me 0007-08-10, > > if i do "select to_date('10 September 2007','DD Month ');"

Re: [SQL] to_date function

2007-09-06 Thread Phillip Smith
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of anru chen Sent: Friday, 7 September 2007 15:23 To: pgsql-sql@postgresql.org Subject: [SQL] to_date function > Hi all: > > i am use postgres 8.2 on windows XP, following select statement > >

[SQL] to_date function

2007-09-06 Thread anru chen
Hi all: i am use postgres 8.2 on windows XP, following select statement "select to_date('10 August 2007','DD Month ');" return me 0007-08-10, if i do "select to_date('10 September 2007','DD Month ');" result is correct 2007-09-10 seems like "to_date" function only work correctly for cur