i got this problem and i don't know what to do... they have thesame format
$date_expire = '2014-08-06 00:00:00';
$date1 = date("Y-m-d G:i:s");
$date2 = date_create($date_expire);
$diff = date_diff($date1, $date2); //this line makes error..
Rikesh
来源:https://stackoverflow.com/questions/24608529/date-diff-expects-parameter-1-to-be-datetimeinterface-string-given