original_string: public function date($name, $value = null, $min = null, $max = null, $options = array())
      {
          if( !isset($min) && !isset($max) ) return 'The date field "'.$name.'" must have a min, max or both.';
          
          if( isset($min) ) $options['min'] = $min;
          if( isset($max) ) $options['max'] = $max;
          
  		return $this->input('date', $name, $value, $options);
      }
code: public function date($name, $value = null, $min = null, $max = null, $options = array())
      {
          if( !isset($min) && !isset($max) ) return 'The date field "'.$name.'" must have a min, max or both.';
          
          if( isset($min) ) $options['min'] = $min;
          if( isset($max) ) $options['max'] = $max;
          
  		return $this->input('date', $name, $value, $options);
      }
code_tokens: public function date ( $ name , $ value = null , $ min = null , $ max = null , $ options = array ( ) ) { if ( ! isset ( $ min ) && ! isset ( $ max ) ) return 'The date field "' . $ name . '" must have a min, max or both.' ; if ( isset ( $ min ) ) $ options [ 'min' ] = $ min ; if ( isset ( $ max ) ) $ options [ 'max' ] = $ max ; return $ this -> input ( 'date' , $ name , $ value , $ options ) ; }
docstring: Create a form date field.
  
  @param  string  $name
  @param  date    $value
  @param  date    $min
  @param  date    $max
  @param  array   $options
  @return string
docstring_tokens: Create a form date field .