From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | Condor <condor(at)stz-bg(dot)com> |
Cc: | "pgsql-general(at)postgresql(dot)org >> PG-General Mailing List" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: How to convert US date format to European date format ? |
Date: | 2013-04-12 08:57:57 |
Message-ID: | CAFj8pRCb1DQQw-HZR75PKYWDbJ-6OEUV8CJwuUPJ9xyHs=tMag@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
2013/4/12 Condor <condor(at)stz-bg(dot)com>
> On 2013-04-12 10:59, John R Pierce wrote:
>
>> 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<http://www.postgresql.org/docs/current/static/functions-formatting.html>
>>
>>
>>
>>
>> --
>> john r pierce 37N 122W
>> somewhere on the middle of the left coast
>>
>
> Yes, I see this function but if I need to select 100 000 rows this mean I
> think,
> this function will be start 100 000 times. I mean when I ask the question,
> it's is possible to format the date how I like it without to use functions,
> just something like: set datestyle ('postgres with my custom format
> 00:00:00 dmy', DMY)
> something like that. Sry that I did not explain it.
>
>
If you cannot use datestyle, then there are no any other possibility.
Postgres doesn't support custom datestyles.
Regards
Pavel
>
> Cheers,
> Hristo S.
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/**mailpref/pgsql-general<http://www.postgresql.org/mailpref/pgsql-general>
>
From | Date | Subject | |
---|---|---|---|
Next Message | John R Pierce | 2013-04-12 08:58:57 | Re: Why is PostgreSQL 9.1 not using index for simple equality select |
Previous Message | Condor | 2013-04-12 08:54:53 | Re: How to convert US date format to European date format ? |