<?php date_default_timezone_set('Europe/Paris'); $february = new \DateTimeImmutable('2022-02-01T00:00:00'); $march = new \DateTimeImmutable('2022-03-01T00:00:00'); echo $february->format(\DateTimeInterface::ATOM) . PHP_EOL; echo $march->format(\DateTimeInterface::ATOM) . PHP_EOL; var_dump($february->diff($march)->d);
You have javascript disabled. You will not be able to edit any code.