2
Answers

how to set fix day and month but year is selected from cmbbo

Pooja Zol

Pooja Zol

10y
1k
1
int year = Convert.ToInt16(cmbtoyear.SelectedItem.ToString());
            int month = 3;
            int day1 = 31;
    
            DateTime finaldate = new DateTime(month,day1,year);

it show error plz help to solve this.......
Answers (2)