Re: Inserting Dates into a postgresql database
| From: | Jean-Christian Imbeault | Date: | Tue, 29 Apr 2003 09:16:09 +0000 |
| Subject: | Re: Inserting Dates into a postgresql database | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-145605@lists.php.net to get a copy of this message | ||
Matt Macleod wrote:
I'm having trouble formatting a date to be inserted into a postgresql date field.I can spot one bug right away:
$datetoday = $year-$month-$day;I think you mean: $datetoday = $year. "-" . $month . "-" . $day; The way you ahve it $datetoday is year minus mont minus day. Jean-Christian Imbeault