I always find it easiest to use the UNIX Timestamp (the nummber of seconds elapsed since the 1st January 1970);
If you get your two dates in three variables, $day, $month, $year you can use the mktime function to make a timestamp
<?
$timestamp=mktime(0,0,0,$mont,$day,$year,0);
?>
You can then subtract the later timestamp from the erlier one and then find out how many days that is by
<?
$days=($time_stamp1-$timestamp2)/(60*60*24);
?>
HTH
Rob