PHPackages                             silentlun/yii2-datepicker - 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. silentlun/yii2-datepicker

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

silentlun/yii2-datepicker
=========================

Datepicker extension for YII2

1.1(4y ago)022BSD-3-ClausePHP

Since Mar 29Pushed 4y ago1 watchersCompare

[ Source](https://github.com/silentlun/yii2-datepicker)[ Packagist](https://packagist.org/packages/silentlun/yii2-datepicker)[ RSS](/packages/silentlun-yii2-datepicker/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependencies (1)Versions (3)Used By (0)

silentlun\\yii2-datepicker
==========================

[](#silentlunyii2-datepicker)

Datepicker extension for YII2

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist silentlun/yii2-datepicker "*"

```

or add

```
"silentlun/yii2-datepicker": "*"

```

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

Usage
-----

[](#usage)

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

与表格一起使用的示例 有两种使用方式，一种是使用ActiveForm实例，另一种是使用小部件来设置其model和attribute。

```
