original_string: public function filter($value, array $options = [])
      {
          if ( ! is_string($value) || empty(trim($value)))
              return $value;
  
          $this->checkOptions($options);
  
          list($currentFormat, $targetFormat) = array_map('trim', $options);
  
          return DateTime::createFromFormat($currentFormat, $value)->format($targetFormat);
      }
code: public function filter($value, array $options = [])
      {
          if ( ! is_string($value) || empty(trim($value)))
              return $value;
  
          $this->checkOptions($options);
  
          list($currentFormat, $targetFormat) = array_map('trim', $options);
  
          return DateTime::createFromFormat($currentFormat, $value)->format($targetFormat);
      }
code_tokens: public function filter ( $ value , array $ options = [ ] ) { if ( ! is_string ( $ value ) || empty ( trim ( $ value ) ) ) return $ value ; $ this -> checkOptions ( $ options ) ; list ( $ currentFormat , $ targetFormat ) = array_map ( 'trim' , $ options ) ; return DateTime :: createFromFormat ( $ currentFormat , $ value ) -> format ( $ targetFormat ) ; }
docstring: Format date of the given string.
  
  @param  mixed  $value
  @param  array  $options
  
  @return string|mixed
docstring_tokens: Format date of the given string .