How can I calculate dates except Saturdays and Sundays in magento?

For example, I place an order on Friday, August 9, 2019, and the date I check is Monday, August 12, 2019. I want to check if after 3 days I have not confirmed, I will notify but except on Saturday and Sunday.

The above example, if calculated correctly, is 0 days if the third day is passed, it will be counted as 1 day and the notification date is Thursday August 15, 2019.

So who can help me find a solution that calculates a date but does not include Saturday and Sunday?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.