SyntaxFix
Write A Post
Hire A Developer
Questions
$date1=date_create("2020-03-15"); $date2=date_create("2020-12-12"); $diff=date_diff($date1,$date2); echo $diff->format("%R%a days");
For detailed format specifiers, visit the link.