<?php $x = new DateTimeImmutable(); $x = $x->setDate(2015,6,1); var_dump($x); $x = $x->setDate($x->format('Y'),$x->format('n'),30); var_dump($x);
You have javascript disabled. You will not be able to edit any code.