Re: How to convert US date format to European date format ? - Mailing list pgsql-general

From John R Pierce
Subject Re: How to convert US date format to European date format ?
Date
Msg-id 5167BEFA.9010101@hogranch.com
Whole thread Raw
In response to Re: How to convert US date format to European date format?  (Condor <condor@stz-bg.com>)
Responses Re: How to convert US date format to European date format?
List pgsql-general
On 4/12/2013 12:42 AM, Condor wrote:
> and ISO, DMY show me: 2012-10-15 11:00:49.397908 if I use Postgres,
> DMY show me
> Mon 15 Oct 11:00:49.397908 2012
>
> But I want to be formatted: 11:00:49 15-10-2012

use the date formatting functions, like...

     select to_char(yourfield, 'HH:MI:SS DD-MM-YYYY') ...

see http://www.postgresql.org/docs/current/static/functions-formatting.html




--
john r pierce                                      37N 122W
somewhere on the middle of the left coast



pgsql-general by date:

Previous
From: Condor
Date:
Subject: Re: How to convert US date format to European date format?
Next
From: Yang Zhang
Date:
Subject: Why is PostgreSQL 9.1 not using index for simple equality select