I have a situation like this. I have a string stored in DB, like this:
$string: 1,1,1,1,1,1,0
It means: Sunday is 0 (a holiday), all the other days (Mon...Sat) are 1.
Then I have two dates: today (ex: 2012-09-07) and some end date (2012-10-04).
I wonder what should I do to get the total number of business days (deducting the holidays) between Today and this End Date (23 days in my example)? We should use the string stored in the DB.