From: Adrian Tineo <adriantineo@softhome.net>
To: pgsql-php@postgresql.org
Subject: Re: Date type: DATE
Date: Thu, 23 Jan 2003 16:10:22 +0100
Message-ID: <001f01c2c2f1$9255d240$f8ddd8d9@supercable.es> (raw)
References: <200301230150.h0N1ofh20670@smtp.wanadoo.es>
> $date="$year-$month-$day";
> insert into s_objetivos_caso values ($dni,$date,$cod_s_objetivos,$conn);
By default, postgresql uses "ISO with US(NonEuropean) conventions" for the
date, wich means mm/dd/yyyy. You can check that with "show datestyle". Of
course, you can change the convention to a European one like dd/mm/yyyy but
I don't know how to make it permanent.... anyway, if we stick to the default
US convention you would do something like:
$date=$month ."/". $day ."/" $year; // Use the dot (.) to join strings
And then do the insert.
Adrian Tineo
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: adriantineo@softhome.net
Subject: Re: Date type: DATE
In-Reply-To: <001f01c2c2f1$9255d240$f8ddd8d9@supercable.es>
References: <200301230150.h0N1ofh20670@smtp.wanadoo.es> <001f01c2c2f1$9255d240$f8ddd8d9@supercable.es>
* 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