Oct-20-2020, 03:23 AM
how come its not printing as expected
1900-01-01
text = "set a reminder for 10:02 p.m. " match = re.search('\d{2}:\d{2}',text) time_ = datetime.strptime(match.group(), '%I:%M').date() print(time_)this is what im getting when i print it
1900-01-01