I want Substract one column A Date from an another column B in same datatable using linq and save result to third column C
You can use this code
dt.AsEnumerable().ToList().ForEach(Sub(row) row(“C”) = DateTime.Parse(row(“B”).ToString()).Subtract(DateTime.Parse(row(“A”).ToString())))