View Single Post
Old 12-11-2012, 01:15 PM   PM User | #2
idalatob
Regular Coder

 
Join Date: Sep 2007
Location: Grahamstown, South Africa
Posts: 237
Thanks: 6
Thanked 17 Times in 17 Posts
idalatob is on a distinguished road
The problem is, the date function expects a timestamp as the second parameter and not a mysql date.

Try this:

PHP Code:
$N_pub_date     strtotime("{$row['pub_date']}"); 
$N_pub_date date("m/d/y"$N_pub_date);  

echo 
$N_pub_date 
idalatob is offline   Reply With Quote