+ 1

how do I convert a string into a datetime object?

Python Strings https://code.sololearn.com/Wtg07NzxvDfO/?ref=app

5th Oct 2020, 2:02 PM
gangsta in a dress
gangsta in a dress - avatar
3 Antworten
+ 9
gangsta in a dress , i suppose that you already have done a code in playground and have saved it. then you go to q&a section, select the discussion feed in which you wanted to link your code. create a new answer, or use edit to modify an existing answer. on the left side of the input aera, you can see a "plus" sign with a circle around it. click on it. Use "insert code". A window appears. Select "my codes". There you can see all your codes. click on the desired code, so a link of the code will be inserted at the current position. Then click post. Done!
5th Oct 2020, 3:44 PM
Lothar
Lothar - avatar
+ 7
gangsta in a dress , It is not clear what your attached file means? before we can help you, you should do a try by yourself first. please put your code in playground and link it here. Thanks! to give you a hint as you mentioned python as language: - use datetime module and import class datetime from it. here you can find the method strptime(). this enables you to convert date- strings to a datetime objects.
5th Oct 2020, 2:35 PM
Lothar
Lothar - avatar
+ 1
Lothar how do I link it?
5th Oct 2020, 2:50 PM
gangsta in a dress
gangsta in a dress - avatar