0

Hi can anyone help me into this please, I want to change the date formats of Mon 17 may 2021 11:00 to 17052021 . Please help.

13th May 2021, 9:04 AM
Anjali Rani
Anjali Rani - avatar
5 Respuestas
+ 3
import datetime https://docs.python.org/3/library/datetime.html
13th May 2021, 9:32 AM
Gordon
Gordon - avatar
+ 1
I am using , datetime.datetime.strptime(row['date'],"%d %b %Y"). But it is not working, throwing an error
13th May 2021, 10:16 AM
Anjali Rani
Anjali Rani - avatar
+ 1
You have to do it like this: import time print(time.strftime('%d%m%Y'))
13th May 2021, 1:00 PM
Endalk
Endalk - avatar
0
Maybe you could provide your code?
13th May 2021, 10:55 AM
你知道規則,我也是
你知道規則,我也是 - avatar
0
Thanks all for replying, I resolved my issue. Thanks again.
14th May 2021, 1:33 PM
Anjali Rani
Anjali Rani - avatar