lagman/yii-datetime-compare-validator

DateTime comparison validator for Yii

dev-master 2014-04-29 06:44 UTC

README

Usage example

public function rules()
{
    return [
        ['endTime', 'vendor.lagman.yii-datetime-compare-validator.DateTimeCompareValidator',
            'compareAttribute' => 'beginTime', 'format'=>'H:i:s', 'operator' => '>='],
    ];
}