<?php $endDate = new DateTime('01-01-'.date('Y')); echo $endDate; // 2017-01-01
You have javascript disabled. You will not be able to edit any code.