code: private function parseDate($dateTime)
      {
          if (empty($dateTime)) {
              return null;
          }
  
          return DateTime::createFromFormat(DateTime::RFC3339, $dateTime);
      }
docs: @param string|null $dateTime
  
  @return DateTime|null