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. [Utility &amp; Helpers](/categories/utility)
4. /
5. voda/date-input

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

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

HTML 5 compatible date / time input field for Nette.

2.2.0(1y ago)1092.9k↓56.8%10[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 2d 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

40

—

FairBetter than 86% of packages

Maintenance24

Infrequent updates — may be unmaintained

Popularity38

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

698d 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://avatars.githubusercontent.com/u/290157?v=4)[Ondřej Vodáček](/maintainers/voda)[@voda](https://github.com/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

[league/period

Time range API for PHP

7335.8M23](/packages/league-period)[aeon-php/calendar

PHP type safe, immutable calendar library

20810.4M16](/packages/aeon-php-calendar)[kartik-v/yii2-widget-datepicker

Enhanced Yii2 wrapper for the bootstrap datepicker plugin (sub repo split from yii2-widgets).

1177.3M63](/packages/kartik-v-yii2-widget-datepicker)[nette/code-checker

✅ Nette CodeChecker: A simple tool to check source code against a set of Nette coding standards.

911.7M6](/packages/nette-code-checker)[kartik-v/yii2-widget-rating

A Yii2 widget for the simple yet powerful bootstrap-star-rating plugin with fractional rating support (sub repo split from yii2-widgets)

474.3M8](/packages/kartik-v-yii2-widget-rating)[kartik-v/yii2-widget-colorinput

An enhanced Yii 2 widget encapsulating the HTML 5 color input (sub repo split from yii2-widgets)

345.1M12](/packages/kartik-v-yii2-widget-colorinput)

PHPackages © 2026

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