I've been working on a blog commenting system and have been inserting the datetime with NOW()
, and I can't quite manage to pull it back into manageable variables,
I've tried using strtotime
like following
$date_time1 = strtotime( $row['chron']);
echo $date_time1;
also with mktime
$timeywimey = mktime ( $row['chron'] );
both of these are turning 2011-03-24 12:01:59
into 1300964519
Iif possible I would be looking to split these down into yy,mm,dd hh,mm