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'))
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'))
Help support the blog so that I can continue creating new content!
Subscribe and get my books and product announcements.