Re: Custom datestyle for timestamps

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Cc: "Daniel Verite" <daniel(at)manitou-mail(dot)org>
Subject: Re: Custom datestyle for timestamps
Date: 2009-03-05 18:58:04
Message-ID: 200903052058.05278.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thursday 05 March 2009 00:19:02 Daniel Verite wrote:
> SET DATESTYLE takes predefined keywords such as ISO or US as arguments,
> but I can't find a way to specify a custom format string for
> timestamps.

There is no support for that.

> What I'd like to find is an equivalent to Oracle's
> ALTER SESSION SET nls_date_format='DD/MM/YYYY HH24' for example,
> where the format follows the sames rules than to_char and to_date.
> This sets an implicit format for every subsequent text<->date
> conversion.

... or that.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2009-03-05 19:04:55 Re: Postgres with phpScheduleIt
Previous Message John R Pierce 2009-03-05 18:58:03 Re: converting older databases