protected function createComponentForm()
$form = new Form();
$form->addDate('date', 'Date', DateInput::TYPE_DATE);
$form->addDate('datetimeLocal', 'Local datetime', DateInput::TYPE_DATETIME_LOCAL)
->setDefaultValue(new DateTimeImmutable())
->addRule(Form::RANGE, null, array(new DateTimeImmutable('-2 years'), new DateTimeImmutable('+2 years')));
$form->addDate('month', 'Month', DateInput::TYPE_MONTH);
$form->addDate('week', 'Week', DateInput::TYPE_WEEK)
->setDefaultValue(new DateTimeImmutable())
->addRule(Form::RANGE, null, array(new DateTimeImmutable('-1 year'), new DateTimeImmutable('+6 months')));
$form->addDate('time', 'Time', DateInput::TYPE_TIME)
->setDefaultValue(new DateInterval("PT5M3S"));
$form->addSubmit('send', 'Send');
return $form;