<?php if (class_exists('DateTime')) { date_default_timezone_set('Europe/Berlin'); $datetime = new DateTime('2016-01-01 23:59:59'); $datetime->setDate(2016, 2, 28); print_r($datetime); } else { echo 'DateTime not supported yet'; }
You have javascript disabled. You will not be able to edit any code.