Statistics
1
0
0
11d
Badges
Tags
forms
Dependencies

DateInput

Install

Download package

composer require tomaskarlik/dateinput

Register extension in config.neon

dateinput: TomasKarlik\DateInput\DateInputExtension

Usage

$form->addDate('dateTo', 'Datum do:')
	->setRequired('Zadejte datum do!')
	->addRule(Form::VALID, 'Zadejte platné datum!')
	->setAttribute('class', 'datepicker');

$form->addDate('date', 'Date:', 'Y-m-d')
	->setRequired(FALSE)
	->addRule(Form::VALID)
	->setDefaultValue(new DateTime);

Is this addon outdated? Did you find an issue? Please report it.

Componette Componette admin@componette.com