Hello all. I found the following code which will display the number of days between two dates. The problem is if I take out the "SEP" and replace it with say 9 or 09 it doesn't work.
How would I rewrite this so that I can use all numeric values.
All the dates in my database use yyyy-mm-dd format if that helps.
Many thanks.Code:$today=date("d-m-Y");
$date1=strtotime( "1-SEP-2005");
$date2=strtotime($today);
echo "Difference: ".(($date2-$date1)/86400);
