Contact: aviboots(AT)netvision.net.il
39,938 questions
51,875 answers
573 users
from datetime import datetime s = "aaa February the 2th of 2020 bbb ccc at 7:15 PM" dt = datetime.strptime(s, "aaa %B the %dth of %Y bbb ccc at %I:%M %p") print(dt) ''' run: 2020-02-02 19:15:00 '''