def generate_date(self):
        """This method is used to generate date and stores in file share state

        Returns:
            _type_: past time and current time
        """
        current_time_day = datetime.datetime.utcnow().replace(second=0, microsecond=0)
        state = StateManager(connection_string)
        past_time = state.get()
        if past_time is not None:
            logging.info("The last time point is: {}".format(past_time))
        else:
            logging.info(
                "There is no last time point, trying to get events for last week.")
            past_time = (current_time_day -
                         datetime.timedelta(days=7)).strftime("%Y-%m-%d")
        past_time_datetime = datetime.datetime.strptime(past_time, '%Y-%m-%d')
        no_days=(current_time_day-past_time_datetime)
        if(no_days.days>7):
           current_time_day= (past_time_datetime +datetime.timedelta(days=7))
        logging.info("The current time point is: {}".format(current_time_day))     
        state.post(current_time_day.strftime("%Y-%m-%d"))
        return (past_time, current_time_day.strftime("%Y-%m-%d"))
This method is used to generate date and stores in file share state

        Returns:
            _type_: past time and current time
        
Solutions/ZoomReports/Data Connectors/ZoomSentinelConnector/__init__.py