Skip months within specific months range within given interval

Excercise is to have below output -

02/06/2021

02/08/2021

02/10/2021

02/12/2021

Startdate 02/06/2021

Enddate   20/12/2021

Noofintervals 2 months

any idea to achieve this?

  Discussion posts and replies are publicly visible