<?php $year = 2012; $month = 1; $day = -5; $date = \DateTimeImmutable::createFromFormat('Y-m-d', "{$year}-{$month}-{$day}"); var_dump($date->format('Y-m-d H:i:s'));
You have javascript disabled. You will not be able to edit any code.