Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 840179FA510 for ; Fri, 7 Sep 2007 02:22:35 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 08366-06 for ; Fri, 7 Sep 2007 02:22:33 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.228]) by postgresql.org (Postfix) with ESMTP id 6BB369F9D8E for ; Fri, 7 Sep 2007 02:22:32 -0300 (ADT) Received: by nz-out-0506.google.com with SMTP id l8so259974nzf for ; Thu, 06 Sep 2007 22:22:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=/nxsg3mikWc616A6f9MiExQ7XlYPNV/j56H+PQjAGM4=; b=ZSals/w2CaQzPRQKylOlKsBCp5Bu5TvLoXFEX2425BmAoTsblbzeK/TmfVpDwdi6ZqMDud4+liRdNRsOXpjdopkry+xbusw6DbFUM2kflCSaQiwag1mu5tj93x4cDbTQ9OnGfSl1Fv4rSx++NVxDKeGaAo6Y4wCzTXQq9919zyc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=tayjg9vBKnf9DloJb/POyNTy4PEL2lhQ0KGCe+GM20/RbEHQdN8JoJQxmqqV6KBXKXOOl/lGYVb1BJ0CboUWcp5qgBG254wEX+cjvj15OiH40BmN/mQgesap/S3r9NMBA51p67hTcjcvK7eaHVxvkRkyOcZnDCgopyZzupLYjqU= Received: by 10.142.231.7 with SMTP id d7mr71009wfh.1189142551050; Thu, 06 Sep 2007 22:22:31 -0700 (PDT) Received: by 10.142.88.19 with HTTP; Thu, 6 Sep 2007 22:22:30 -0700 (PDT) Message-ID: <9bb664980709062222n13f66543kf621094604a9944e@mail.gmail.com> Date: Fri, 7 Sep 2007 17:22:30 +1200 From: "anru chen" To: pgsql-sql@postgresql.org Subject: to_date function MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/59 X-Sequence-Number: 29272 Hi all: i am use postgres 8.2 on windows XP, following select statement "select to_date('10 August 2007','DD Month YYYY');" return me 0007-08-10, if i do "select to_date('10 September 2007','DD Month YYYY');" result is correct 2007-09-10 seems like "to_date" function only work correctly for current month. any one know why? regards,