From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | bfb21(at)comcast(dot)net |
Cc: | pgsql-general(at)postgresql(dot)org, rod(at)iol(dot)ie |
Subject: | Re: Evidently no support for the mmddyyyy date format |
Date: | 2009-04-10 14:33:59 |
Message-ID: | 162867790904100733m5e286734l97372f0582c517be@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
2009/4/10 <bfb21(at)comcast(dot)net>:
> Yes, I mentioned that I could use the to_date function, but as I said, that
> would involve a LOT of changes to a LOT of source code, which I'm trying to
> avoid.
>
other solution is custom datatype. It isn't too much work, but it is
coding in C.
regards
Pavel Stehule
> -Thanks
>
>
>
> ----- Original Message -----
> From: "Pavel Stehule" <pavel(dot)stehule(at)gmail(dot)com>
> To: rod(at)iol(dot)ie
> Cc: "Bernard Barton" <bfb21(at)comcast(dot)net>, pgsql-general(at)postgresql(dot)org
> Sent: Friday, April 10, 2009 5:40:21 AM GMT -05:00 US/Canada Eastern
> Subject: Re: [GENERAL] Evidently no support for the mmddyyyy date format
>
> Hello
>
> use to_date function, please.
>
> postgres=# select to_date('10122008','DDMMYYYY');
> to_date
> ------------
> 2008-12-10
> (1 row)
>
> Time: 1,152 ms
> postgres=#
>
> regards
> Pavel Stehule
>
> 2009/4/10 Raymond O'Donnell <rod(at)iol(dot)ie>:
>> On 09/04/2009 23:56, Bernard Barton wrote:
>>> Today I tried every permutation of the DateStyle parameter I could find,
>>> and
>>> still cannot get PostgreSQL 8.3 to accept dates in the format mmddyyyy.
>>> I tried
>>
>> How exactly are you sending these values to the database? Straight SQL,
>> or some other mechanism? Can you show us some examples?
>>
>> Ray.
>>
>> ------------------------------------------------------------------
>> Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
>> rod(at)iol(dot)ie
>> Galway Cathedral Recitals: http://www.galwaycathedral.org/recitals
>> ------------------------------------------------------------------
>>
>> --
>> 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
>>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Marcin Krol | 2009-04-10 14:55:36 | Re: complicated query (newbie..) |
Previous Message | bfb21 | 2009-04-10 14:24:59 | Re: Evidently no support for the mmddyyyy date format |