Possible Duplicate:
How to calculate the difference between two dates using PHP?
I have two dates in formate *yyyy-dd-mm
now i want to calculate no of the days , no of weekend (friday to sunday) , week (monday to sunday) between two dates
example :-
First date :-  "2011-12-13"  
Second date :- "2011-12-27"
Answer is :-   No of Days = 5  
               No of weekend= 1
               No of week = 1  
i am using php 5.2 and jquery
 
    