Re: converting to german date format

From: Thomas Lockhart <lockhart(at)fourpalms(dot)org>
To: Janning Vygen <vygen(at)planwerk6(dot)de>
Cc: PostgreSQL-General <pgsql-general(at)postgresql(dot)org>
Subject: Re: converting to german date format
Date: 2001-09-29 07:52:11
Message-ID: 3BB57DAB.C7309410@fourpalms.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> i have different databases with have columns of type 'date'.
> my application converts the date format to german date format like
> 09-28-2001 to 28.09.2001 and back again if the user enters a german
> date format.
> are there any solutions to do stuff like this inside the database?

Of course :)

thomas=# set datestyle = 'german';
SET VARIABLE

thomas=# select date 'now';
date
------------
29.09.2001
(1 row)

hth

- Thomas

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message lt 2001-09-29 07:59:25 Copy error?
Previous Message lt 2001-09-29 06:50:26 Copy error?