samedi 18 avril 2015

Turning strings into datatime in python 3

Im new in Python and Ive got this problem: I want to convert this string and turn it into a datatime: str = "06/04/2015" ------> data = datatime(2015,04,06)


The problem is that I will use the solution to turn other strings into data, like "12/02/2015", but in the month number the first index is a zero and I will use only the number two.


Aucun commentaire:

Enregistrer un commentaire