Loading...

strtotime Add Two Working Days

David Carr

1 min read - 15th May, 2019

There are times you want to add days to a date but only working days, so weekends are ignored.

Thankfully strtotime makes this super easy simply use weekdays like this:

date('Y-m-d H:i:s', strtotime('+2 weekdays'))

 

0 comments
Add a comment