It is necessary to separate the dt_send_daytime column as dd / hh / mm / ss, where dd is the day
I tried it like this
string dt_str = row["shedule_dt_send_daytime"].ToString(); string[] dt_str_tmp = dt_str.Split(':'); switch (row["time_name_ru"].ToString()) { case "Час": Console.WriteLine(dt_str_tmp[2] + ":" + dt_str_tmp[3]); //мм:сс break; case "Неделя": Console.WriteLine(dt_str_tmp[0] + ":" + dt_str_tmp[1]); //дд:чч break; case "День": Console.WriteLine(dt_str_tmp[1] + ":" + dt_str_tmp[2]); //чч:мм break; case " минут": Console.WriteLine(dt_str_tmp[3]); //сс break; } And if in the column name_ru will be another час . How to do it? Please add my code or another example can)

будет ещё часnot entirely clear. It is better to give an example of how it was, and how it should turn out. - slippykЧасbegins with a smallчас, theНеделяwill be with a smallнеделя- propro17