public function mapToFrom($value)
    {
        if ($value instanceof LocalDate) {
            return $value->format($this->format);
        }

        if ($value instanceof \DateTime) {
            return $value->format($this->format);
        }

        return '';
    }
public function mapToFrom($value)
    {
        if ($value instanceof LocalDate) {
            return $value->format($this->format);
        }

        if ($value instanceof \DateTime) {
            return $value->format($this->format);
        }

        return '';
    }
@param LocalDate|\DateTime|mixed $value

@return mixed