Re: Date Format Question

Поиск
Список
Период
Сортировка
От Frank Bax
Тема Re: Date Format Question
Дата
Msg-id 5.2.1.1.0.20051205145402.00a34c80@pop6.sympatico.ca
обсуждение исходный текст
Ответ на Re: Date Format Question  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-novice
At 02:42 PM 12/5/05, Tom Lane wrote:

>Frank Bax <fbax@sympatico.ca> writes:
> > That's weird, because on my system to_date('31/12/2005','mm/dd/yyyy')
> > produces 2007-07-14!
>
>Yeah, to_date()'s lack of error checking is disgraceful.  For most
>purposes, it'd be better to read this data using the normal date
>input converter with DATESTYLE set to DMY (or MDY if that's what you
>really wanted).


I didn't mean the 2007-7-14 was weird result.  It was weird that OP's
results could not have come from the command he claimed to have
entered.  OP claimed that to_date('31/12/2005','mm/dd/yyyy') produced
12/31/2005; but that's not possible.


В списке pgsql-novice по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Date Format Question
Следующее
От: "Sugrue, Sean"
Дата:
Сообщение: Re: Need help building SQL query