code: public function mapFromForm($value)
      {
          if (IsDateString::isValidDateString($value)) {
              return new \DateTime($value, $this->timeZone);
          }
  
          return null;
      }
docs: @param mixed $value
  
  @return mixed