PHPackages                             pzavoli71/yii2-widget-datetimepicker - 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. pzavoli71/yii2-widget-datetimepicker

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

pzavoli71/yii2-widget-datetimepicker
====================================

An updated version of kartik-v datetimepicker to enable dd/mm/yyyy hh:ii format datetime

013PHP

Since Apr 7Pushed 3y agoCompare

[ Source](https://github.com/pzavoli71/yii2-widget-datetimepicker)[ Packagist](https://packagist.org/packages/pzavoli71/yii2-widget-datetimepicker)[ RSS](/packages/pzavoli71-yii2-widget-datetimepicker/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

 [ ![Krajee Logo](https://camo.githubusercontent.com/4addfbb3869c3fc7d79befea4f06d9cf3655a686fb503df0da1d725859cfdef9/687474703a2f2f6b617274696b2d762e6769746875622e696f2f626f6f7473747261702d66696c65696e7075742d73616d706c65732f73616d706c65732f6b72616a65652d6c6f676f2d622e706e67) ](http://demos.krajee.com "Krajee Demos")
 yii2-widget-datetimepicker ---

 [![Donate](https://camo.githubusercontent.com/0336bc43d88554a3f2d6c74dddf312bc2c65c2eacca70d83ae40f5567098d00e/68747470733a2f2f6b617274696b2d762e6769746875622e696f2f626f6f7473747261702d66696c65696e7075742d73616d706c65732f73616d706c65732f646f6e6174652e706e67)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=DTP3NZQ6G2AYU "Donate via Paypal") [![kartikv](https://camo.githubusercontent.com/0cf29a542375e1a46e84d8bf5805a4e5c0a6ee98b6547ccdc0c55eed49d99c69/68747470733a2f2f63646e2e6275796d6561636f666665652e636f6d2f627574746f6e732f76322f64656661756c742d79656c6c6f772e706e67)](https://www.buymeacoffee.com/kartikv "Buy me a coffee")
=============================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#------------------------yii2-widget-datetimepicker------------------)

[![Stable Version](https://camo.githubusercontent.com/3427fe956929453790ae9d85f1fc24cad7b3e4befc38be71ee1d90bc5097463b/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d7769646765742d6461746574696d657069636b65722f762f737461626c65)](https://packagist.org/packages/kartik-v/yii2-widget-datetimepicker)[![Untable Version](https://camo.githubusercontent.com/be1b9d8145835c909ce2bcb11c0a3f1385519ed1028361f997de881f0275b74f/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d7769646765742d6461746574696d657069636b65722f762f756e737461626c65)](https://packagist.org/packages/kartik-v/yii2-widget-datetimepicker)[![License](https://camo.githubusercontent.com/4b80188a3e7d0e4a2b8c19dfb4b526412797e6f6d546836d6d481cbb99a9abfa/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d7769646765742d6461746574696d657069636b65722f6c6963656e7365)](https://packagist.org/packages/kartik-v/yii2-widget-datetimepicker)[![Total Downloads](https://camo.githubusercontent.com/ede721167832301543442d672f52d1a65d6d3c79c879e4bee1e61e83358fe938/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d7769646765742d6461746574696d657069636b65722f646f776e6c6f616473)](https://packagist.org/packages/kartik-v/yii2-widget-datetimepicker)[![Monthly Downloads](https://camo.githubusercontent.com/d9a78d2238d60c88d99809e64ee40caa799aa4da0d330aef24e0d2e1e460a4f2/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d7769646765742d6461746574696d657069636b65722f642f6d6f6e74686c79)](https://packagist.org/packages/kartik-v/yii2-widget-datetimepicker)[![Daily Downloads](https://camo.githubusercontent.com/4dcd7d0178ac600410bbb3b094f547b612ccbfed82e9af555c72c88fdb5c2c5a/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d7769646765742d6461746574696d657069636b65722f642f6461696c79)](https://packagist.org/packages/kartik-v/yii2-widget-datetimepicker)

The DateTimePicker widget is a Yii 2 wrapper for the [Bootstrap DateTimePicker plugin](http://www.malot.fr/bootstrap-datetimepicker) with various enhancements. The plugin is a fork of the DateTimePicker plugin by @eternicode and adds the time functionality. The widget is similar to the DateTimePicker widget in most aspects, except that it adds the time functionality and does not support ranges. The widget is specially styled for Yii framework 2.0 and Bootstrap 3 and allows graceful degradation to a normal HTML text input, if the browser does not support JQuery. The widget supports these markups:

- Simple Input Markup
- Component Markup - Addon Prepended
- Component Markup - Addon Appended
- Inline / Embedded Markup
- Solo Button Markup

> NOTE: This extension is a sub repo split of [yii2-widgets](https://github.com/kartik-v/yii2-widgets). The split has been done since 08-Nov-2014 to allow developers to install this specific widget in isolation if needed. One can also use the extension the previous way with the whole suite of [yii2-widgets](http://demos.krajee.com/widgets).

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/). Check the [composer.json](https://github.com/kartik-v/yii2-widget-datetimepicker/blob/master/composer.json) for this extension's requirements and dependencies. Read this [web tip /wiki](http://webtips.krajee.com/setting-composer-minimum-stability-application/) on setting the `minimum-stability` settings for your application's composer.json.

To install, either run

```
$ php composer.phar require kartik-v/yii2-widget-datetimepicker "*"

```

or add

```
"kartik-v/yii2-widget-datetimepicker": "*"

```

to the `require` section of your `composer.json` file.

Release Changes
---------------

[](#release-changes)

> NOTE: Refer the [CHANGE LOG](https://github.com/kartik-v/yii2-widget-datetimepicker/blob/master/CHANGE.md) for details on changes to various releases.

Demo
----

[](#demo)

You can refer detailed [documentation and demos](http://demos.krajee.com/widget-details/datetimepicker) and [API Documentation](https://docs.krajee.com/kartik-datetime-datetimepicker) on usage of the extension.

Usage
-----

[](#usage)

```
use kartik\datetime\DateTimePicker;

echo 'Start Date/Time';
echo DateTimePicker::widget([
    'name' => 'datetime_10',
    'options' => ['placeholder' => 'Select operating time ...'],
    'convertFormat' => true,
    'pluginOptions' => [
        'format' => 'd-M-Y g:i A',
        'startDate' => '01-Mar-2014 12:00 AM',
        'todayHighlight' => true
    ]
]);
```

License
-------

[](#license)

**yii2-widget-datetimepicker** is released under the BSD-3-Clause License. See the bundled `LICENSE.md` for details.

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 Bus Factor1

Top contributor holds 70.2% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/41ba4d1700c6d7db06c97e189d8a25d2983cec9cab0df48a946fb73b004ae552?d=identicon)[pzavoli](/maintainers/pzavoli)

---

Top Contributors

[![kartik-v](https://avatars.githubusercontent.com/u/3592619?v=4)](https://github.com/kartik-v "kartik-v (85 commits)")[![vishuB](https://avatars.githubusercontent.com/u/13677102?v=4)](https://github.com/vishuB "vishuB (5 commits)")[![cinghie](https://avatars.githubusercontent.com/u/2445152?v=4)](https://github.com/cinghie "cinghie (3 commits)")[![almirb](https://avatars.githubusercontent.com/u/1752962?v=4)](https://github.com/almirb "almirb (2 commits)")[![pzavoli71](https://avatars.githubusercontent.com/u/61480658?v=4)](https://github.com/pzavoli71 "pzavoli71 (2 commits)")[![a-borsos](https://avatars.githubusercontent.com/u/252152853?v=4)](https://github.com/a-borsos "a-borsos (2 commits)")[![Commifreak](https://avatars.githubusercontent.com/u/87267?v=4)](https://github.com/Commifreak "Commifreak (2 commits)")[![mfaeezmazlan](https://avatars.githubusercontent.com/u/14104634?v=4)](https://github.com/mfaeezmazlan "mfaeezmazlan (2 commits)")[![dogrocker](https://avatars.githubusercontent.com/u/8379027?v=4)](https://github.com/dogrocker "dogrocker (2 commits)")[![lukascernydis](https://avatars.githubusercontent.com/u/3111717?v=4)](https://github.com/lukascernydis "lukascernydis (1 commits)")[![mbetel](https://avatars.githubusercontent.com/u/3909180?v=4)](https://github.com/mbetel "mbetel (1 commits)")[![MikleUA](https://avatars.githubusercontent.com/u/8805154?v=4)](https://github.com/MikleUA "MikleUA (1 commits)")[![morisenmen](https://avatars.githubusercontent.com/u/6622830?v=4)](https://github.com/morisenmen "morisenmen (1 commits)")[![Scentyoo](https://avatars.githubusercontent.com/u/3822672?v=4)](https://github.com/Scentyoo "Scentyoo (1 commits)")[![switchy](https://avatars.githubusercontent.com/u/1830978?v=4)](https://github.com/switchy "switchy (1 commits)")[![1darvesh](https://avatars.githubusercontent.com/u/5379762?v=4)](https://github.com/1darvesh "1darvesh (1 commits)")[![zoolanders49](https://avatars.githubusercontent.com/u/3331405?v=4)](https://github.com/zoolanders49 "zoolanders49 (1 commits)")[![depesr](https://avatars.githubusercontent.com/u/9600300?v=4)](https://github.com/depesr "depesr (1 commits)")[![efrj](https://avatars.githubusercontent.com/u/833439?v=4)](https://github.com/efrj "efrj (1 commits)")[![gunmetalbackupgooglecode](https://avatars.githubusercontent.com/u/11455411?v=4)](https://github.com/gunmetalbackupgooglecode "gunmetalbackupgooglecode (1 commits)")

### Embed Badge

![Health badge](/badges/pzavoli71-yii2-widget-datetimepicker/health.svg)

```
[![Health](https://phpackages.com/badges/pzavoli71-yii2-widget-datetimepicker/health.svg)](https://phpackages.com/packages/pzavoli71-yii2-widget-datetimepicker)
```

PHPackages © 2026

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