I\'m trying to convert times from 12 hour times into 24 hour times...
06:35 ## Morning 11:35 ## Morning (If m2 is anywhe
You need to specify that you mean PM instead of AM.
>>> from datetime import * >>> m2 = '1:35 PM' >>> m2 = datetime.strptime(m2, '%I:%M %p') >>> print(m2) 1900-01-01 13:35:00