Overtrue\Validation\Validator::getDateFormat PHP Method

getDateFormat() protected method

Get the date format for an attribute if it has one.
protected getDateFormat ( string $attribute ) : string | null
$attribute string
return string | null
    protected function getDateFormat($attribute)
    {
        if ($result = $this->getRule($attribute, 'DateFormat')) {
            return $result[1][0];
        }
    }
Validator