I need to get the MinutesRendered
on a specific job
on my program. I have the startdate
and enddate
of that particular job
. I need to count the difference between these 2 dates while skipping the holidays, weekends and only counting 8am-5pm per working days (Mon-Fri).
I find it hard to come-up with a logic that will do this. Is there any existing logic or snippet (not really have to be JAVA) that will show me how can this be possible?