I am accessing date from database using below query, in my jupyterLab notebook: it is giving this ValueError: time data ‘(datetime.date(2021, 7, 30), )’ does not match format ‘%Y/%m/%d’ can anyone guide, the correct way pls? Answer Seems like c_date is already a datetime.date object. You don’t need to cDate = str(c_date). try: