Hello,
Using PHP 4, MySQL 4, I am getting a date field
$dbh = executeSQL($que ry);
while ($row = mysql_fetch_arr ay($dbh)) {
$offer_id = $row['offer_id'];
$dep_date = $row['depart_day'];
// print out date
print $dep_date;
THe problem is the date prints out in this form "2006-02-05 00:00:00"
and I want it to print out like this "02/22/2006".
How can I do this? I would prefer to use a PHP function as opposed to
applying some MySQL date function prior to extracting the result.
Thanks, - Dave
Using PHP 4, MySQL 4, I am getting a date field
$dbh = executeSQL($que ry);
while ($row = mysql_fetch_arr ay($dbh)) {
$offer_id = $row['offer_id'];
$dep_date = $row['depart_day'];
// print out date
print $dep_date;
THe problem is the date prints out in this form "2006-02-05 00:00:00"
and I want it to print out like this "02/22/2006".
How can I do this? I would prefer to use a PHP function as opposed to
applying some MySQL date function prior to extracting the result.
Thanks, - Dave
Comment