PHPackages                             years/yii2-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. [Templating &amp; Views](/categories/templating)
4. /
5. years/yii2-datetimepicker

ActiveYii2-extension[Templating &amp; Views](/categories/templating)

years/yii2-datetimepicker
=========================

Bootstrap datetimepicker widget for Yii 2, based on Eonasdan/bootstrap-datetimepicker.

4.0.2(8y ago)0430BSD-3-ClausePHPPHP &gt;=5.4.0

Since Oct 13Pushed 8y agoCompare

[ Source](https://github.com/zxy198717/yii2-datetimepicker)[ Packagist](https://packagist.org/packages/years/yii2-datetimepicker)[ RSS](/packages/years-yii2-datetimepicker/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (3)Versions (20)Used By (0)

Datetime picker widget
======================

[](#datetime-picker-widget)

Bootstrap datetimepicker widget for Yii 2, based on [Eonasdan/bootstrap-datetimepicker](https://github.com/Eonasdan/bootstrap-datetimepicker).

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist nkovacs/yii2-datetimepicker "*"

```

or add

```
"nkovacs/yii2-datetimepicker": "*"

```

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

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code:

```
