I want Substract one column A Date from an another column B in same datatable using linq and save result to third column C?

I want Substract one column A Date from an another column B in same datatable using linq and save result to third column C

Hi @shreeraj.raul

You can use this code

dt.AsEnumerable().ToList().ForEach(Sub(row) row(“C”) = DateTime.Parse(row(“B”).ToString()).Subtract(DateTime.Parse(row(“A”).ToString())))