Re: converting to german date format - Mailing list pgsql-general

From Thomas Lockhart
Subject Re: converting to german date format
Date
Msg-id 3BB57DAB.C7309410@fourpalms.org
Whole thread Raw
In response to converting to german date format  (Janning Vygen <vygen@planwerk6.de>)
Responses Re: converting to german date format
List 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

pgsql-general by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: Temporary Table Problem
Next
From: "lt"
Date:
Subject: Copy error?