<?= $this->form->date(t('Due Date'), 'due_date', $values + array('due_date' => 0), $errors); ?>
info at phpclasses dot org