https://stackoverflow.com/questions/9724906/python-date-of-the-previous-month
Anonymous
Work your system no matter how imperfect, and modify it as you go.