Statistics
15838
5
0
158d
Badges
Requirements

DateTimePicker for Nette Framework

DatePicker and DateTimePicker input controls for Nette Framework

This add-on creates input box to select date or date and time.

Requirements

GNU Lesser General Public License

LGPL licenses are very very long, so instead of including them here we offer you URLs with full text:

Example of using DI extension

config.neon:

extensions:
  tbDatePicker: RadekDostal\NetteComponents\DateTimePicker\TbDatePicker\DI\TbDatePickerExtension
 
tbDatePicker:
  format: j. n. Y

Part of form definition where date is optional (Nette 2.4):

$this->addTbDatePicker('date', 'Date')
  ->setRequired(FALSE)
  ->addRule(self::RANGE, NULL, array(new \DateTime('2016-09-01'), new \DateTime('2016-09-15')));

Part of form definition where date is optional (Nette < 2.4):

$this->addTbDatePicker('date', 'Date')
  ->addConditionalRule(self::RANGE, NULL, array(new \DateTime('2016-09-01'), new \DateTime('2016-09-15')));

Learn more in examples.

  • v2.5.0 Released version 2.5.0

    • Added date/datetime format validation.
    • Added validation rules for optional items (Nette < 2.4) (#9).
  • v2.4.0 Released version 2.4.0

    • Added DI extensions.
    • Fixed Nette 2.2, 2.3 and 2.4 compatibility.
  • v2.3.1 Released version 2.3.1

    DatePicker, TbDatePicker: fixed PHP < 7 compatibility.

  • v2.3.0 Released version 2.3.0

    Added validation rules MIN, MAX, RANGE.

  • v2.2.0 Released version 2.2.0

    • Added DatePicker::register(), DateTimePicker::register(), TbDatePicker::register(), TbDateTimePicker::register() for registering the extension.
    • DatePicker, DateTimePicker: allowed changing the value directly.
    • Removed attribute cols from constructors.
  • v2.1.0 Released version 2.1.0

    Allows set value as native \DateTime object instead of \Nette\Utils\DateTime (e.g. \DibiDateTime).

  • v2.0.0 Released version 2.0.0

    Used Bootstrap datetimepicker 4.0.0 for TbDatePicker and TbDateTimePicker (BC break).

  • v1.6.1 Released version 1.6.1

    Input label is optional.

  • v1.6.0 Released version 1.6.0

    Allowed customizable format for all date/datetime pickers.

  • v1.5.0 Released version 1.5.0

    Added Twitter Bootstrap styled TbDatePicker and TbDateTimePicker input controls.

  • v1.4.0 Released version 1.4.0

    Added DatePicker Input Control to select date without time.

  • v1.3.0 Released version 1.3.0

  • v1.2.2 Released version 1.2.2

  • v1.2.1 Released version 1.2.1

  • v1.2.0 Released version 1.2.0

  • v1.1.0 Released version 1.1.0

  • v1.0.0 Released version 1.0.0

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

Componette Componette admin@componette.com