See the yii documentation. Validates datetime as integer, since it is a timestamp Validates date as a db formatted date string.
Definition at line 43 of file TypeValidator.php.
Validates the attribute of the model. If there is any error, the error message is added to the model.
Definition at line 51 of file TypeValidator.php.