AnsweredAssumed Answered

Loop through Date Range

Question asked by themactech. on Apr 1, 2015
Latest reply on Apr 2, 2015 by philmodjunk


Loop through Date Range


I'm working on a leave request form where the user puts in a date range and submits the request for approval. If approved the supervisor would click a button that will go through each date in the date range... check to see if 1) it's a work day and if 2). There is a holiday within the date range.

What's the best way to loop through a range of dates. DateStart and DateEnd?

I have a variable $next (DateStart + 1) and that gives me the next day but then I'm unsure how to account for the remaining days in the range.