code: public function mapToFrom($value)
      {
          if ($value instanceof LocalDate) {
              return $value->format($this->format);
          }
  
          if ($value instanceof \DateTime) {
              return $value->format($this->format);
          }
  
          return '';
      }
docs: @param LocalDate|\DateTime|mixed $value
  
  @return mixed