<?php $date1 = new DateTime("2010-07-06"); $date2 = new DateTime("2010-07-07"); echo $numberOfNights= $date2->diff($date1)->format("%a");
You have javascript disabled. You will not be able to edit any code.