How to Get Number of Days Between Two Dates in PHP
https://atcodex.com/php/how-to-get-number-of-days-between-two-dates-in-php/
Oct 03, 2020 · <?php $date1 = date_create("2020-10-01"); $date2 = date_create("2019-06-18"); //difference between two dates $diff = date_diff($date1,$date2); //count days echo 'Total Days Count - '.$diff->format("%a"); ?> Output: Total Days Count - 471. We have used two PHP function in the above script to get the number of days between two dates.
DA: 97 PA: 30 MOZ Rank: 95 Up or Down: Up