public function dateformat(array $submitted, array $options)
    {
        $options += array(
            'field' => null,
            'label' => null
        );

        $value = gplcart_array_get($submitted, $options['field']);

        if (strtotime($value) === false) {
            return $this->setErrorInvalid($options['field'], $options['label']);
        }

        return true;
    }
public function dateformat(array $submitted, array $options)
    {
        $options += array(
            'field' => null,
            'label' => null
        );

        $value = gplcart_array_get($submitted, $options['field']);

        if (strtotime($value) === false) {
            return $this->setErrorInvalid($options['field'], $options['label']);
        }

        return true;
    }
public function dateformat ( array $ submitted , array $ options ) { $ options += array ( 'field' => null , 'label' => null ) ; $ value = gplcart_array_get ( $ submitted , $ options [ 'field' ] ) ; if ( strtotime ( $ value ) === false ) { return $ this -> setErrorInvalid ( $ options [ 'field' ] , $ options [ 'label' ] ) ; } return true ; }
Validates the date format
@param array $submitted
@param array $options
@link http://php.net/manual/en/function.strtotime.php
@return bool|array
Validates the date format