code: def get_dataset_end_date_as_datetime(self):
          # type: () -> Optional[datetime]
          
          dataset_date = self.data.get('dataset_date', None)
          if dataset_date:
              if '-' in dataset_date:
                  dataset_date = dataset_date.split('-')[1]
                  return datetime.strptime(dataset_date, '%m/%d/%Y')
          return None
docs: Get dataset end date as datetime.datetime object.
  
          Returns:
              Optional[datetime.datetime]: Dataset date in datetime object or None if no date is set