Yii can not validate own date formats?

What I have is a Project model with field date with related rule:




public function rules()

{

    return array(

        array('DATE', 'type', 'type' => 'date', 'message' => 'Date format should be: ' . Yii::app()->locale->dateFormat, 'dateFormat' => Yii::app()->locale->dateFormat)

    );

}



Current locale is ‘en’, so dateFormat is ‘MMM d, y’, but it fails to validate value like ‘Feb 13, 2011’.

Digging inside the code there is a CDateTimeParser class with the parse method which doesn’t have ‘y’ and ‘MMM’ options.

Am I doing something wrong?

p.s. Is it possible in Yii to validate date like ‘Feb 13, 2011’?

Decided to bump this old thread… is there anyway to get this working or is this simply a incompatibility issue with Yii?