<?php $now = new DateTimeImmutable; $next = new DateTimeImmutable("last day of next week - 4 weekdays"); var_dump($now->format('d.m.Y'), $next->format('d.m.Y'), $next->diff($now)->format('%a'), $next->format('d.m.Y'));
You have javascript disabled. You will not be able to edit any code.