Jump to content

I need a date...


phpretard

Recommended Posts

The datbase id set to default like this 0000-00-00.

 

I would like to display the date like this 02-14-08.

 

The code below doesn't work (I am sure this is obvious to someone).

 

$date= $row['date'];
$date1=date_format($date, '%m %d %y');

echo $date1 ;

 

Please help me...

 

-Anthony

 

 

Link to comment
https://forums.phpfreaks.com/topic/91107-i-need-a-date/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.