<?php
$list['timeadded'] = '01/02/2012 07:40:23';
$dt1 = new DateTime($list['timeadded']);
$dt2 = new DateTime();
$dt2->sub(new Interval('P7D'));
if ($dt1 < $dt2)
{
echo 'This date is within 7 days';
}
Fatal error: Uncaught Error: Class "Interval" not found in /in/bljfs:6
Stack trace:
#0 {main}
thrown in /in/bljfs on line 6
Process exited with code 255.
Fatal error: Uncaught Error: Class 'Interval' not found in /in/bljfs:6
Stack trace:
#0 {main}
thrown in /in/bljfs on line 6
Process exited with code 255.