Ive been trying to use time.strptime(string1,\'%H:%M\'), with no success
time.strptime(string1,\'%H:%M\')
How can I get the following:
Input Output 3:14AM -> 03:
You're missing %p (Locale’s equivalent of either AM or PM).
%p
time.strptime(string1,'%H:%M%p')