PHPackages                             sergmoro1/yii2-ru-date - 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. sergmoro1/yii2-ru-date

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

sergmoro1/yii2-ru-date
======================

Behavior for Russian date.

0681PHP

Since Jul 22Pushed 6y ago1 watchersCompare

[ Source](https://github.com/sergmoro1/yii2-ru-date)[ Packagist](https://packagist.org/packages/sergmoro1/yii2-ru-date)[ RSS](/packages/sergmoro1-yii2-ru-date/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 behavior for date fields processing
========================================

[](#yii2-behavior-for-date-fields-processing)

The Behavior class for operations with date fields in Russian format.

No more maintained, please use [sergmoro1\\yii2-ru-kit](https://github.com/sergmoro1/yii2-ru-kit).

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

[](#installation)

```
$ composer require sergmoro1/yii2-ru-date "dev-master"
```

Usage
-----

[](#usage)

You should define behavior in a Model class.

```
use sergmoro1\rudate\RuDate;

class Post extends ActiveRecord
{
  public function behaviors() {
    return [
      'RuDate' => ['class' => RuDate::className()]
    ];
  }
```

And use it in appropriate place in a view.

```
