Received: from bugs.unl.edu.ar (bugs.unl.edu.ar [168.96.132.208]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f51KeCE66001 for ; Fri, 1 Jun 2001 16:40:12 -0400 (EDT) (envelope-from martin@bugs.unl.edu.ar) Received: by bugs.unl.edu.ar (Postfix, from userid 1004) id 67EC02AB3A; Fri, 1 Jun 2001 17:40:39 +0300 (GMT) Content-Type: text/plain; charset="iso-8859-1" From: =?iso-8859-1?q?Mart=EDn=20Marqu=E9s?= To: pgsql-sql@postgresql.org Subject: date format Date: Fri, 1 Jun 2001 17:40:38 +0300 X-Mailer: KMail [version 1.2] MIME-Version: 1.0 Message-Id: <01060117403801.10748@bugs> Content-Transfer-Encoding: 8bit X-Archive-Number: 200106/10 X-Sequence-Number: 3213 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 -----------------------------------------------------------------