<input name="datedepart" type="date" value="<?php echo date('Y-m-d',strtotime($data["congestart"])) ?>"/>