- var_dump: documentation ( source)
- date: documentation ( source)
- strtotime: documentation ( source)
<?php
$dataTime['last_update_date'] = '2016-01-22 15:07:23';
$oldtimestamp = strtotime($dataTime['last_update_date']);
$timestamp = strtotime(
date('Y-m-d',
strtotime($dataTime['last_update_date'])
)
);
echo date('Y.m.d h:i:s',$oldtimestamp);
echo "
";
echo date('Y.m.d h:i:s',$timestamp);
echo "
";
var_dump($timestamp < $oldtimestamp);