month_name = "Jan" datetime_object = datetime.datetime.strptime(month_name, "%b") month_number = datetime_object.month print(month_number) OUTPUT