X-Original-To: pgsql-sql-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 13BBE9FB279 for ; Tue, 22 Aug 2006 10:28:02 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 03212-05 for ; Tue, 22 Aug 2006 13:27:47 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by postgresql.org (Postfix) with ESMTP id 454589FB352 for ; Tue, 22 Aug 2006 10:27:47 -0300 (ADT) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.7/8.13.7) with ESMTP id k7MDRbFX029040 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 22 Aug 2006 07:27:39 -0600 (MDT) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.6/8.13.6) with ESMTP id k7MDRbTT056555; Tue, 22 Aug 2006 07:27:37 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.6/8.13.6/Submit) id k7MDRbhQ056554; Tue, 22 Aug 2006 07:27:37 -0600 (MDT) (envelope-from mfuhr) Date: Tue, 22 Aug 2006 07:27:36 -0600 From: Michael Fuhr To: "Penchalaiah P." Cc: pgsql-sql@postgresql.org Subject: Re: to get DD-MM-YYYY format of data Message-ID: <20060822132736.GA56533@winnie.fuhr.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=3.817 tagged_above=0 required=5 tests=SPF_HELO_SOFTFAIL, SPF_SOFTFAIL, UNPARSEABLE_RELAY X-Spam-Level: *** X-Archive-Number: 200608/153 X-Sequence-Number: 26111 On Tue, Aug 22, 2006 at 06:46:11PM +0530, Penchalaiah P. wrote: > I am using date is data type to one of the field in my table....but when > ever I am passing values to that field it is taking yyy-mm-dd format.. > > But I don't want like that .. I need like this DD-MM-YYYY.. for this wt > I have to do... See "Date/Time Input," "Date/Time Output," and "Data Type Formatting Functions" in the documentation: http://www.postgresql.org/docs/8.1/interactive/datatype-datetime.html http://www.postgresql.org/docs/8.1/interactive/functions-formatting.html -- Michael Fuhr