<?php $today = new DateTimeImmutable(); $one_year = new DateInterval('P1Y'); $last_year = $today->sub($one_year); $next_year = $today->add($one_year); echo $last_year->format('Y').' '.$today->format('Y').' '.$next_year->format('Y');
You have javascript disabled. You will not be able to edit any code.