Re: Using YY-MM-DD date input

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: PostgreSQL-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Using YY-MM-DD date input
Date: 2003-07-28 20:16:31
Message-ID: 21100.1059423391@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> I assume that the datestyle has to be set to YMD for this to work as
> outlined above, right, and that 97-01-01 will throw an error unless the
> datestyle is YMD.

Right, no more heuristics (other than assuming YYYY-MM-DD if the first
field is written with four digits). With 2-digit fields, the field
order will be taken to be whatever datestyle says it is.

> Yes, second one is most recent version.

Thanks, I'll work from that.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2003-07-28 20:18:02 Re: Using YY-MM-DD date input
Previous Message Rajesh Kumar Mallah 2003-07-28 20:01:11 Re: CREATE TABLE with REFERENCE