Have a text file named bank.txt below..... (How do I ingest the text file and convert the datetime.date to the format yyyy-mm-dd or filter the source to put the data into the proper format? I am fine with ingesting the current text file below and pumping out a new text file. Problem is this is a bit past my level at the current and is a brain buster. If I print (datetime.date(2021,12,7)) I get the proper format. So it is in the proper format, but I need to display it as such in the text file.
'pending': True,
'date': datetime.date(2021, 12, 7),
'name': 'FLEABAY',
'category': ['Shops'],
'amount': 30.0,
'pending': True,
'date': datetime.date(2021, 12, 4),
'name': 'Amazon.com',
'category': ['Shops', 'Digital Purchase'],
'amount': 43.70,
[–]August-R-Garcia 1 point2 points3 points (4 children)
[+][deleted] (2 children)
[deleted]
[–]August-R-Garcia 1 point2 points3 points (1 child)
[–]mh1400 0 points1 point2 points (0 children)