How can we know the number of days between two given dates using PHP?

Thursday, February 4, 2010 23:38

The start date and end date can be first found as shown below:

$date1= strotime($start_date);
$date2= strotime($end_date);
$date_diff = (($date1)- ($date2)) / (60*60*24)
  • Share/Bookmark
You can leave a response, or trackback from your own site.

Leave a Reply