I would like to only print '%d/%m/%Y, %H:%M'
, but
when I say:
print(loan_due.strftime('%d/%m/%Y, %H:%M'))
I'm getting an error saying AttributeError: 'str' object has no attribute 'strftime'
.
I tried many ways but it's still not working for me. loan_due
I have in my json file and this how it looks:
{"customer": [{"loan_due": "22/12/2017, 19:02:39:4536"}]}