<?phpfunction getdays($day1,$day2){ return round((strtotime($day2)-strtotime($day1))/(24*60*60),0);}$begin = date("Y/m/d"); // we set today as an example$end = "2006/11/27";getdays($begin,$end);?>