select substring(cast(generate_series as varchar),1,7)bb from generate_series(to_date('2016-04','yyyy-mm'),
to_date('2021-03', 'yyyy-mm'),
'1 month' ::interval)