problem in checking holiday using php [closed]

Sara961

New Member
I am very new to php.
I am working with a leave application where a user select some dates for applying leave.The user input is in form of (\[code\]2010-09-03\[/code\] for \[code\]3rd sep 2010\[/code\] and \[code\]2010-09-06\[/code\] for \[code\]6th sep 2010\[/code\]).
2nd and 4th saturday would be holiday in every month including sunday.I want to display the number of leaves he applied for. Suppose if a user selects \[code\]3rd sep\[/code\] to \[code\]6th sep\[/code\] it should display the number of leaves as \[code\]3\[/code\] and if selects 10th sep to 13th sep it should display the number of leaves as 2 (because of 2nd saturday and a sunday).What is the best way to do this?
 
Back
Top