In my application i want to show a certain date without calculate the weekend days.
So i have date when promotion start: 2016-11-03
. promotion lasts for 45
days.
$value['invesdate'] // 2016-11-03
$businessdays= date('Y-m-d', strtotime($value['invesdate'] . ' +45 day'));
Start of promotion 2016-11-03
plus (+) 45
days = 2016-12-15
This is wrong date becouse i calculate and weekend days.
The corrct date is 2016-01-05
How do I remove the calculation weekend days ?