note 3210 modified in date by ronabop

From: Date: Fri, 01 Sep 2000 04:25:14 +0000
Subject: note 3210 modified in date by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-3870@lists.php.net to get a copy of this message
I don't if this will help anyone, but to insert into a date field using a mysql database and date(), eregi_replace("\-", $data[date]); If you have an array with a date field, you can use the following: list($year,$month,$day)=split("\-",$data[date]"); $date = $year.$month.$day; I believe you can also directly pipe the array-variable to the date() function directly. http://www.php.net/manual/function.date.php

« previous php.notes (#3870) next »