If I give a date in a string, e.g start_date = '01-Feb-21', how can I generate a total of eight dates from this one input?
Those eight dates being:
['01-Feb-21', # we get this from the input
'28-Feb-21',
'01-Jan-21',
'31-Jan-21',
'01-Dec-20',
'31-Dec-20',
'01-Nov-20',
'30-Nov-20']
corresponding to the month starts and ends of the month of start_date and the 3 preceding months.