0

How can I parse the string below into datetime using the strptime method?

s = ' 1:00 PM, May 20, 2020'
  • what do you mean by "*mixed structure*"? – FObersteiner Nov 23 '20 at 08:28
  • Does this answer your question? [How can I account for period (AM/PM) using strftime?](https://stackoverflow.com/questions/1759455/how-can-i-account-for-period-am-pm-using-strftime) – FObersteiner Nov 23 '20 at 08:33
  • Does this answer your question? [month name to month number and vice versa in python](https://stackoverflow.com/questions/3418050/month-name-to-month-number-and-vice-versa-in-python) – FObersteiner Nov 23 '20 at 08:40

1 Answers1

0
import time    
time.strptime(' 1:00 PM, May 20, 2020', " %H:%M PM, %B %d, %Y")