Answer the question
In order to leave comments, you need to log in
Why doesn't datetime.datetime.strptime want to work?
d = datetime.datetime.strptime('24.12.2019', '%d.%m.%Y')
Answer the question
In order to leave comments, you need to log in
s = datetime.datetime.strptime(f'{d}', "%d.%m.%Y")
in this line you are passing in the variable d just the number 2.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question