| From: | Jeff Davis <pgsql(at)j-davis(dot)com> |
|---|---|
| To: | RPK <rpk(dot)general(at)gmail(dot)com> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Store dates in database in different format |
| Date: | 2007-04-27 18:19:22 |
| Message-ID: | 1177697962.28383.93.camel@dogma.v10.wvs |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On Fri, 2007-04-27 at 11:09 -0700, RPK wrote:
> I am using pgsql 8.2.3 on windows XP. I noticed that dates are store in
> 'Date' columns of a table in "yyyy-mm-dd" format whereas I want to store it
> in "dd-MMM-yyyy" format. Can I change this?
First of all, you're talking about the input/output format, not the
storage format. There's no reason to store the dates differently.
Here's some documentation that can help you with displaying dates like
you want:
http://www.postgresql.org/docs/8.2/static/runtime-config-client.html
(see the DateStyle config)
http://www.postgresql.org/docs/8.2/static/functions-datetime.html
You can also create your own type if that's helpful.
Regards,
Jeff Davis
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Kevin Hunter | 2007-04-27 18:40:07 | Re: Feature Request --- was: PostgreSQL Performance Tuning |
| Previous Message | Bill Moran | 2007-04-27 18:16:38 | Re: Store dates in database in different format |