I want to pass user input to a DB query as a datetime object and thought this might work but I get an error:
start_date = "2022-07-29" #this is the user input
start = datetime.datetime(start_date)
Do I really have to split the string etc. to make it work?