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.


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


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


$form->addTbDatePicker('date', 'Date')
  ->addRule(self::RANGE, NULL, [new \DateTime('2016-09-01'), new \DateTime('2016-09-15')]);

Learn more in examples.

  • v3.1.0 Released version 3.1.0


    • PHP 7.2 or later,
    • nette/di 3.0 or later,
    • nette/forms 3.1 or later,
    • nette/utils 3.2.1 or later.
  • v3.0.0 Released version 3.0.0


    • PHP 7.1 or later,
    • nette/di 3.0 or later,
    • nette/forms 3.0 or later,
    • nette/utils 3.0 or later.
  • v2.7.0 Released version 2.7.0

    Added support for NULL return value if setNullable() was used (285c178).

  • v2.6.0 Released version 2.6.0

    Added support for \DateTimeImmutable (7bb3dee).

  • v2.5.1 Released version 2.5.1

    Values of units omitted in format string are resetted to default value instead of current datetime (#10).

  • 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.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

  • v1.2.2 Released version 1.2.2

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

Componette Componette