Black Friday sale is now on! 50% off Laravel: The Modular Way. Learn more

strtotime Add Two Working Days

David Carr

PHP & MySQL Tutorials

    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'))


    Laravel Modules Book by David Carr

    Help support the blog so that I can continue creating new content!

    Subscribe to my newsletter

    Subscribe and get my books and product announcements.

    © 2009 - 2022 DC Blog. All code MIT license. All rights reserved.