strptime tag

2 questions


1 answers
82 views
0
I am trying to change the date format using python datetime.strptime, but a Value Error appears.

The data I want to format is date data in the format [20160610]T[0].Bring to repeat statement Use datetime.strptime to make that data into a single string like '%sT%s' The format is [%Y%m%d]T[%H%M%S]....


1 answers
129 views
0
How do I change a string like "0/0" to a date form?

I'd like to change strings such as January 20th to a date form, but I think it'll be difficult to use strptime() because the form has no zeros in front of it like July 4th.Can't we simply change strin...


© 2024 OneMinuteCode. All rights reserved.