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

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

mrlco/yii2-jalali-datepicker
============================

Jalali (persian) Bootstrap DatePicker Widget for Yii2

2.0.0(6y ago)62.2k2BSD-3-ClausePHP

Since Jun 13Pushed 6y ago2 watchersCompare

[ Source](https://github.com/mrlco/yii2-jalali-datepicker)[ Packagist](https://packagist.org/packages/mrlco/yii2-jalali-datepicker)[ Docs](http://mrlco.ir)[ RSS](/packages/mrlco-yii2-jalali-datepicker/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (3)Versions (10)Used By (0)

Jalali Bootstrap DatePicker Widget for Yii2
===========================================

[](#jalali-bootstrap-datepicker-widget-for-yii2)

Renders a [Persian Web Toolkit](http://babakhani.github.io/PersianWebToolkit)'s [Persian Date Picker](http://babakhani.github.io/PersianWebToolkit/doc/datepicker/) ([Reza Babakhani](https://github.com/babakhani)'s nice work.)

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

[](#installation)

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

Either run

```
composer require mrlco/yii2-jalali-datepicker:~1.1.0

```

or add

```
"mrlco/yii2-jalali-datepicker" : "~1.1.0"
```

to the require section of your application's `composer.json` file.

#### Bootstrap 4 support

[](#bootstrap-4-support)

From v2.0.0 - [Updated to use Bootstrap 4](https://github.com/mrlco/yii2-jalali-datepicker/releases/tag/2.0.0)

Usage
-----

[](#usage)

### DatePicker

[](#datepicker)

This widget renders a Bootstrap Persian DatePicker input control. Best suitable for model with date string attribute.

#### With a form model

[](#with-a-form-model)

There are two ways:

- with an ActiveForm instance:

```
// as a widget
