if (scheduledatepicker.Value.DayOfWeek == DayOfWeek.Sunday) { clearDates(); lblW1D1.Text = scheduledatepicker.Value.AddDays(0).ToString("dd"); lblW1D2.Text = scheduledatepicker.Value.AddDays(1).ToString("dd"); lblW1D3.Text = scheduledatepicker.Value.AddDays(2).ToString("dd"); lblW1D4.Text = scheduledatepicker.Value.AddDays(3).ToString("dd"); lblW1D5.Text = scheduledatepicker.Value.AddDays(4).ToString("dd"); lblW1D6.Text = scheduledatepicker.Value.AddDays(5).ToString("dd"); lblW1D7.Text = scheduledatepicker.Value.AddDays(6).ToString("dd"); lblW2D1.Text = scheduledatepicker.Value.AddDays(7).ToString("dd"); lblW2D2.Text = scheduledatepicker.Value.AddDays(8).ToString("dd"); lblW2D3.Text = scheduledatepicker.Value.AddDays(9).ToString("dd"); lblW2D4.Text = scheduledatepicker.Value.AddDays(10).ToString("dd"); lblW2D5.Text = scheduledatepicker.Value.AddDays(11).ToString("dd"); lblW2D6.Text = scheduledatepicker.Value.AddDays(12).ToString("dd"); lblW2D7.Text = scheduledatepicker.Value.AddDays(13).ToString("dd"); lblW3D1.Text = scheduledatepicker.Value.AddDays(14).ToString("dd"); lblW3D2.Text = scheduledatepicker.Value.AddDays(15).ToString("dd"); lblW3D3.Text = scheduledatepicker.Value.AddDays(16).ToString("dd"); lblW3D4.Text = scheduledatepicker.Value.AddDays(17).ToString("dd"); lblW3D5.Text = scheduledatepicker.Value.AddDays(18).ToString("dd"); lblW3D6.Text = scheduledatepicker.Value.AddDays(19).ToString("dd"); lblW3D7.Text = scheduledatepicker.Value.AddDays(20).ToString("dd");
Or do I have to write all +/- 42 labels worth of code for each day?