PHP code example of radekdostal / nette-datetimepicker
1. Go to this page and download the library: Download radekdostal/nette-datetimepicker library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
radekdostal / nette-datetimepicker example snippets
extensions:
tbDatePicker: RadekDostal\NetteComponents\DateTimePicker\TbDatePicker\DI\TbDatePickerExtension
tbDatePicker:
format: j. n. Y
$form->addTbDatePicker('date', 'Date')
->setNullable()
->addRule(self::Range, NULL, [new \DateTime('2016-09-01'), new \DateTime('2016-09-15')]);