how can i subtract two dates and get the number days eg. date1=2005-2-15; date2=2005-2-1;
result= 14 days
Consider [man]strtotime/man.