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'))
Read articles directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Copyright © 2006 - 2025 DC Blog - All rights reserved.