Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $date1 = new DateTime("2019-05-31");//fecha actual
- $date2 = new DateTime("2019-06-15");//fecha de inicio del curso
- $diff = $date1->diff($date2);
- echo $diff->days . ' days ';
- 15 days
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement