
August 2nd, 2000, 12:13 PM
|
|
Apprentice Deity
|
|
Join Date: Jul 1999
Location: Niagara Falls (On the wrong side of the gorge)
Posts: 3,237

Time spent in forums: 4 m 8 sec
Reputation Power: 17
|
|
|
If you can manipulate mysql dates on the command line, then you know how to manipulate them in php. Just send the appropriate select statement via mysql_query().
$result=mysql_query("select some,fields,date_format('format string',datefield) as fdate from table");
If you really want to manipulate the date format in php then you'll need to retrieve the date as a unixtimestamp.
$result=mysql_query("select unix_timestamp(datefield) as utstmp from table");
|