I added a condition to my function. I would like if the new date ($dateSelect) falls between the 01 of July and the 30 of August that it shifts for the month of September and I would also exclude Sundays, if it falls on a Sunday it shifts to Saturday. That's what I already did:
function calcDate($date)
{
$dateSelect = date('Y-m-d', strtotime('+30 days', strtotime($date)));
}
Do you have any idea how I can do that?
Thank you.