code: def isValid(self):
          
  
          today = DateTime()
          valid_from = self.getValidFrom()
          valid_to = self.getValidTo()
  
          return valid_from <= today <= valid_to
docs: Returns if the current certificate is in a valid date range