Hi,
From your explanation, I could come up with this answer. Let me know if this suits.
DateTime startTime =Convert.ToDateTime(dttimeslot.Rows[0]["day_start_time"].ToString());
DateTime endTime=Convert.ToDateTime(dttimeslot.Rows[0]["day_end_time"].ToString());
while (startTime < endTime)
{
startTime = startTime.AddMinutes(inc);
}
Does this help?