pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Martín Marqués <martin@bugs.unl.edu.ar>
To: pgsql-sql@postgresql.org
Subject: date format
Date: Fri, 1 Jun 2001 17:40:38 +0300
Message-ID: <01060117403801.10748@bugs> (raw)

I was reading the date data type section of the Postgres Manual, and found 
this:

Date and time input is accepted in almost any reasonable format, including 
ISO-8601, SQL-compatible, traditional Postgres, and others. The ordering of 
month and day in date input can be ambiguous, therefore a setting exists to 
specify how it should be interpreted in ambiguous cases. The command SET 
DateStyle TO 'US' or SET DateStyle TO 'NonEuropean' specifies the variant 
"month before day", the command SET DateStyle TO 'European' sets the variant 
"day before month". The ISO style is the default but this default can be 
changed at compile time or at run time. 

Now, normally work with day/month/year format, and work normally with PHP, so 
do we have to set the datestyle variable each time we open a connection? Can 
this be the default as it says in the manuals and how?

Saludos... :-)

-- 
Cualquiera administra un NT.
Ese es el problema, que cualquiera administre.
-----------------------------------------------------------------
Martin Marques                  |        mmarques@unl.edu.ar
Programador, Administrador      |       Centro de Telematica
                       Universidad Nacional
                            del Litoral
-----------------------------------------------------------------



view thread (13+ messages)  latest in thread

Message-ID: <01060117403801.10748@bugs>
Permalink:  ../01060117403801.10748@bugs/
Also on:    postgresql.org/message-id/01060117403801.10748@bugs

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: martin@bugs.unl.edu.ar
  Subject: Re: date format
  In-Reply-To: <01060117403801.10748@bugs>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox