I am having trouble printing a formatted time object produced from a string
This is my code:
date_time_str = 'May 10 2021'
date_time_obj = datetime. strptime(date_time_str, '%m %d %Y')
print("The type of the date is now", type(date_time_obj))
This is the error:
ValueError: time data 'May 10 2021' does not match format '%m %d %Y'