From: Alvaro Herrera <alvherre@commandprompt.com>
To: Penchalaiah P. <penchalaiahp@infics.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: to get DD-MM-YYYY format of data
Date: Tue, 22 Aug 2006 09:27:05 -0400
Message-ID: <20060822132705.GL14368@alvh.no-ip.org> (raw)
In-Reply-To: <A70AE049E81A6A40879D5DC0AC8C38C906F3F4B0@venus.infics.com>
References: <A70AE049E81A6A40879D5DC0AC8C38C906F3F4B0@venus.infics.com>
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...
Read the documentation on the "DateStyle" parameter, noticing that it
controls two things at once, input and output of dates.
You may also use to_char() or extract() to format the date manually
without messing with the configuration.
--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: alvherre@commandprompt.com, penchalaiahp@infics.com
Subject: Re: to get DD-MM-YYYY format of data
In-Reply-To: <20060822132705.GL14368@alvh.no-ip.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox