DatePicker and DateTimePicker input controls for Nette Framework
- Author: Radek Dostál <[email protected]>
- Copyright: Copyright (c) 2010 - 2023 Radek Dostál
- Licence: GNU Lesser General Public License
- Github: radekdostal/Nette-DateTimePicker
This add-on creates input box to select date or date and time.
- PHP 8.0 or later
- Nette Dependency Injection Container 3.1 or later
- Nette Forms 3.1 or later
- Nette Utilities 3.2.1 or later or 4.0 or later
LGPL licenses are very very long, so instead of including them here we offer you URLs with full text:
config.neon:
extensions:
tbDatePicker: RadekDostal\NetteComponents\DateTimePicker\TbDatePicker\DI\TbDatePickerExtension
tbDatePicker:
format: j. n. Y
Form:
$form->addTbDatePicker('date', 'Date')
->setNullable()
->addRule(self::RANGE, NULL, [new \DateTime('2016-09-01'), new \DateTime('2016-09-15')]);
Learn more in examples.