def datetime(self):
        # note: empty string is parsed as today's date
        date = self.config.get('date') or ''

        try:
            date = parser.parse(date).date()
        except ValueError:
            date = datetime.utcnow().date()

        return datetime(date.year, date.month, date.day, 23, 59, 59)
Returns a datetime object at the end of the selected
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/reports/commtrack/data_sources.py/SimplifiedInventoryDataSource.datetime