PHPackages                             voda/date-input - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. voda/date-input

ActiveLibrary

voda/date-input
===============

HTML 5 compatible date / time input field for Nette.

2.2.0(1y ago)1091.8k↓47.6%11[4 issues](https://github.com/voda/DateInput/issues)[1 PRs](https://github.com/voda/DateInput/pulls)1BSD-3-ClausePHPPHP &gt;=7.2.0

Since Jan 25Pushed 1y ago2 watchersCompare

[ Source](https://github.com/voda/DateInput)[ Packagist](https://packagist.org/packages/voda/date-input)[ RSS](/packages/voda-date-input/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (16)Used By (1)

DateInput
=========

[](#dateinput)

Nette forms component for selecting date and time values.

In PHP this addon works with DateTime objects, in the browser it uses jqueryUI calendar with timepicker addon. Look at some examples at the [demo page](http://date-input.vodacek.eu/).

[![Build Status](https://camo.githubusercontent.com/7f7d8b65541bb221f104f6e82c76997fcc7aacab0cc99b44a64041edce489742/68747470733a2f2f7472617669732d63692e6f72672f766f64612f44617465496e7075742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/voda/DateInput)[![Latest Stable Version](https://camo.githubusercontent.com/7b9ffbf2d056d947071ed69334a19ced7cccf7c220f8c41ebbd8aaf8aef769e3/68747470733a2f2f706f7365722e707567782e6f72672f766f64612f646174652d696e7075742f762f737461626c65)](https://packagist.org/packages/voda/date-input)[![Total Downloads](https://camo.githubusercontent.com/e5eeb8d5dcd9bd153a30086abd58b99f51082ce59acbe75ca280f414ac60ec64/68747470733a2f2f706f7365722e707567782e6f72672f766f64612f646174652d696e7075742f646f776e6c6f616473)](https://packagist.org/packages/voda/date-input)[![License](https://camo.githubusercontent.com/37f2d4241a0374d3e0c6b36696a2b31fdc0241b32093b3a7c2eff518dd260bde/68747470733a2f2f706f7365722e707567782e6f72672f766f64612f646174652d696e7075742f6c6963656e7365)](https://packagist.org/packages/voda/date-input)

JS dependencies
---------------

[](#js-dependencies)

- [jQuery](http://jquery.com/) and [jQueryUI](http://jqueryui.com/)
- [Timepicker addon](http://trentrichardson.com/examples/timepicker/) version 1.1.0 or newer

Installation
------------

[](#installation)

`$ composer require voda/date-input`

package can be also installed using bower: `$ bower install voda-date-input --save`

insert required javascript and style files into your layout (order of scripts is important):

```

```

register the addon in your bootstrap.php:

```
Vodacek\Forms\Controls\DateInput::register();

```

initialize the calendar using javascript:

```
$(document).ready(function() {
    $('input[data-dateinput-type]').dateinput({
        'datetime-local': {
            dateFormat: 'd.m.yy',
            timeFormat: 'H:mm',
            options: { // options for type=datetime-local
                changeYear: true
            }
        },
        date: {
            dateFormat: 'd.m.yy'
        },
        month: {
            dateFormat: 'MM yy'
        },
        week: {
            dateFormat: "w. 'week of' yy"
        },
        time: {
            timeFormat: 'H:mm'
        },
        options: { // global options
            closeText: "Close"
        }
    });
});
```

Usage
-----

[](#usage)

```
$form->addDate('datetimeLocal', 'Local datetime', DateInput::TYPE_DATETIME_LOCAL)
        ->setRequired()
        ->setDefaultValue(new DateTimeImmutable())
        ->addRule(Form::RANGE, null, array(new DateTimeImmutable('-2 years'), new DateTimeImmutable('+2 years')));
```

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity39

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 91.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~323 days

Recently: every ~743 days

Total

14

Last Release

653d ago

Major Versions

1.2.0 → 2.0.02019-08-25

PHP version history (3 changes)1.0.0PHP &gt;=5.3.0

1.2.0PHP &gt;=5.5.0

2.0.0PHP &gt;=7.2.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/89d839ca1355079e36b5471770ef67b3cf407f46c1bad7d8531fa22451af0fd1?d=identicon)[voda](/maintainers/voda)

---

Top Contributors

[![voda](https://avatars.githubusercontent.com/u/290157?v=4)](https://github.com/voda "voda (86 commits)")[![michallohnisky](https://avatars.githubusercontent.com/u/4747059?v=4)](https://github.com/michallohnisky "michallohnisky (4 commits)")[![MichalKalita](https://avatars.githubusercontent.com/u/2118850?v=4)](https://github.com/MichalKalita "MichalKalita (2 commits)")[![pt24](https://avatars.githubusercontent.com/u/6972192?v=4)](https://github.com/pt24 "pt24 (1 commits)")[![richard-ejem](https://avatars.githubusercontent.com/u/7109726?v=4)](https://github.com/richard-ejem "richard-ejem (1 commits)")

---

Tags

addondatepickernettenettedatecalendarforminput

### Embed Badge

![Health badge](/badges/voda-date-input/health.svg)

```
[![Health](https://phpackages.com/badges/voda-date-input/health.svg)](https://phpackages.com/packages/voda-date-input)
```

###  Alternatives

[tomaj/nette-bootstrap-form

Nette bootstrap form renderer

28440.4k6](/packages/tomaj-nette-bootstrap-form)[nextras/form-components

Form components for Nette Framework.

10242.9k](/packages/nextras-form-components)[nextras/forms-rendering

Rendering helpers for Nette Framework Forms.

1698.4k2](/packages/nextras-forms-rendering)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
