original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Validates the date format
  @param array $submitted
  @param array $options
  @link http://php.net/manual/en/function.strtotime.php
  @return bool|array
docstring_tokens: Validates the date format