code: def get_date(self):
          
          if self.safe_type == EsaSafeType.OLD_TYPE:
              name = self.product_id.split('_')[-2]
              date = [name[1:5], name[5:7], name[7:9]]
          else:
              name = self.product_id.split('_')[2]
              date = [name[:4], name[4:6], name[6:8]]
          return '-'.join(date_part.lstrip('0') for date_part in date)
docs: Collects sensing date of the product.
  
          :return: Sensing date
          :rtype: str