Calculate business days
Posted
by AdamTheHutt
on Stack Overflow
See other posts from Stack Overflow
or by AdamTheHutt
Published on 2008-12-03T03:07:45Z
Indexed on
2010/05/20
3:20 UTC
Read the original article
Hit count: 233
Hi,
I need a method for adding "business days" in PHP. For example, Friday 12/5 + 3 business days = Wednesday 12/10.
At a minimum I need the code to understand weekends, but ideally it should account for US federal holidays as well. I'm sure I could come up with a solution by brute force if necessary, but I'm hoping there's a more elegant approach out there. Anyone?
Thanks.
© Stack Overflow or respective owner