How to get the start and end date for previous X months based on datetime.today() in python?

后端 未结 0 1499
半阙折子戏
半阙折子戏 2021-02-03 23:39

I want get a list of start and end dates of the current + previous 4 months based on the current date.

Currently I manually update the list every month.

fr         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题