I have a simple three line script that converts a string to a datetime in Python.
from datetime import datetime
mydate='Feb-22-1732'
print(datetime.strptime(mydate,'%b-%dd-%Y'))
But when I run this code, I get an error saying:
ValueError: time data 'Feb-22-1732' does not match format '%b-%dd-%Y'
Can you please help me understand what am I doing wrong here?
Thanks in advance.