if (ddlMaintenPlan.SelectedItem.Text == "Weekly") { DateTime dtLastday = Convert.ToDateTime(dtpMaintenceEnd.Text.Trim()); while (dsStartDate <= dtLastday) { for (int i = Convert.ToInt32(dsStartDate); i < Convert.ToInt32(dtLastday); i++) { dsStartDate = Convert.ToDateTime(Convert.ToInt32(dsStartDate) + Convert.ToInt32(i.ToString())); DRLocal = DTLocal.NewRow(); DTLocal.Rows.Add(dsStartDate); } } }
for (int i = Convert.ToInt32(dsStartDate); i < Convert.ToInt32(dtLastday); i += 7)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)