I have date time in the format YYYY/DOY/HHMM
DOY = Day of year
I tried to parse as follows.
from datetime import datetime
s = "1929/189/1820"
res = datetime.strptime(s, "%y/%j/%H%M")
print (res)
ValueError: time data ‘2029/199/1820’ does not match format ‘%y/%j/%H%M’.
>Solution :
The Y for year should be capitol
This should fix it.
datetime.strptime(s, "%Y/%j/%H%M")