There are several methods of formats the date in Python, one of which I can advise you on as I think it is the simplest, and that is the method of formatting the date and time in Python using the Pandas library. I won't explain here how it is done as it is long to write, but I will give you a link where it is written about it in detail https://topminisite.com/blog/how-to-format-a-date-and-time-in-python-using.