Python / Quick note on how to make a Datetime object from string

How to get date from a string:

import datetime
ts = datetime.datetime.strptime(str_date, '%Y-%m-%d %H:%M:%S.%f')

1 comment: