<?php function diffInDays($date1,$date2) { $diff = $date1-$date2; return floor($diff/3600/24); } echo diffInDays(strtotime('2014-05-30'),time());
You have javascript disabled. You will not be able to edit any code.