shshanker
9/18/2015 - 8:10 AM

Subtract some date from specific date

Subtract some date from specific date

<?php
$current_date = new DateTime;
$course_date  = new DateTime($crs_booking_date);
$diff    = $course_date->diff($current_date)->d;

?>