March 22nd, 2013, 09:49 AM
Paid holidays from date range?
Howdy. I am working on a Time Off Request form atm, and after submitted, the company wishes to display on the list the start date, end date, and number of paid holidays within this date range. I figure the paid holidays can end up in an array, but I've no clue how to do a comparison and count of such kind.
Any help would be greatly appreciated.
March 22nd, 2013, 11:58 AM
You're not getting any responses because it's really difficult to understand what you're asking for. Please rewrite more clearly, perhaps with code examples, and indicate what you've tried.
March 22nd, 2013, 04:07 PM
Start date and End date are submitted. (Action)
PHP calculates how many days from start to end. (Just action)
PHP calculates how many days within this range are considered Holidays. (Action and echo'ed)
PHP subtracts Holiday count, if any, from range count. (Action and echo'ed)
Date range calculation
March 22nd, 2013, 04:37 PM
March 22nd, 2013, 08:20 PM
The holiday part seems to be a bit tricky, but I think I actually got the idea n know what direction I'm aiming. Thanks for your help!