Re: output format for dates - Mailing list pgsql-general

From Bruce Momjian
Subject Re: output format for dates
Date
Msg-id 200209231458.g8NEwjc12553@candle.pha.pa.us
Whole thread Raw
In response to output format for dates  (am@fx.ro)
List pgsql-general
wsheldah@lexmark.com wrote:
>
> Will setting the DATESTYLE to ISO allow it to accept dates in the ISO
> format '2002-09-23T10:54:32', including the 'T' between the date and the
> time? I have a client app. that handles dates in that format, and currently
> I have to change the 'T' to a space before inserting or updating it into a
> table. Thanks,

Yes, I think that was added as well:

    test=> select timestamp '2002-09-23T10:54:32';
          timestamp
    ---------------------
     2002-09-23 10:54:32
    (1 row)

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-general by date:

Previous
From: "Johnson, Shaunn"
Date:
Subject: rotatelog / logrotate with PostgreSQL
Next
From: Tom Lane
Date:
Subject: Re: [SQL] Monitoring a Query