How about in C6 only
Formula: copy to clipboard
=LET(d,DATE(E3,MONTH("1/"&E2),1),SEQUENCE(DAY(EOMONTH(d,0)),,d))
clear all cells below C6 first