Прописал в модели следующее:
Код: Выделить всё
public $ts;
public function rules() {
return array(
array('actual', 'date', 'format'=>'yyyy-MM-dd HH:mm:ss', 'message'=>'Enter the Expire date in the format "yyyy-mm-dd HH:mm:ss"', 'timestampAttribute'=>'ts', 'allowEmpty'=>false),
);
}
Если я правильно понял, то дата в формате date распарсится и результат присвоится переменной $model->ts. Вывожу после извлечения эту переменную, но возвращается пустота, хотя $model->actual задано.the name of the attribute to receive the parsing result. When this property is not null and the validation is successful, the named attribute will receive the parsing result.