If I print a datetime
object in python with a simple print myDateTime
(or print(myDateTime)
in python3), how can I recover the datetime
object from the resulting string?
I could have asked "what is the python strftime
format used by datetime.__str__()
"?
ps: There are many questions about conversion of strings to python datetime objects. In the spirit of using stack overflow as a repository of quickly available, useful programming tips, I'm asking this since none of those questions answer this rather specific and oft needed query.