Jump to content

Date Problem?


adilmarwat

Recommended Posts

From the database you can always use strtotime and then use date to display it.Example:

$variable = '2010-03-05'; // Timestamp$date = date('d-m-Y', strtotime($variable)); // day - month - yearecho 'original variable: '.$variable.'<br>the date is '.$date;

Hope it helps!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...