+ 1
datetime
With the datetime library how do you get user input in the date format?
2 Réponses
+ 2
Simply get the user input as a string. Then use the datetime.datetime.strptime method to parse it as a datetime object
https://docs.python.org/3/library/datetime.html#strftime-and-strptime-behavior
+ 2
your the best :)