yii\validators\DateValidator::parseDateValue PHP Метод

parseDateValue() защищенный Метод

Parses date string into UNIX timestamp
protected parseDateValue ( string $value ) : integer | false
$value string string representing date
Результат integer | false a UNIX timestamp or `false` on failure.
    protected function parseDateValue($value)
    {
        // TODO consider merging these methods into single one at 2.1
        return $this->parseDateValueFormat($value, $this->format);
    }

Usage Example

 /**
  * @inheritdoc
  */
 protected function parseDateValue($value)
 {
     if ($value instanceof \MongoDate) {
         return $value->sec;
     }
     return parent::parseDateValue($value);
 }
All Usage Examples Of yii\validators\DateValidator::parseDateValue