Files
programming-examples/python/Date/Python program to convert a string to datetime.py
Michael Reber b880c3ccde Initial commit
2019-11-15 12:59:38 +01:00

3 lines
129 B
Python

from datetime import datetime
date_object = datetime.strptime('Jul 1 2014 2:43PM', '%b %d %Y %I:%M%p')
print(date_object)