Hello All,
I have a datatable scraped from a website:-
Type India Uk Germany
ES 22SEP16 22SEP16 C
ET U 01JAN19 01JAN19
EG C 01FEB20 U
My requirement is to replace the date column wherever present as yyyy-MM-dd format.
Type India Uk Germany
ES 2016-09-22 2016-09-22 C
ET U 2019-01-01 2019-01-01
EG C 2020-02-20 U
Pls, let me know how to loop through each datarow and change the value dynamically,
Thanks…I checked this solution.I am not good at linq.
Could you pls help me to resolve the error
(From r In dt_Master.AsEnumerable
Let ra = r.ItemArray.Select(Function (x) x.ToString.Trim.Replace(“C”,“FF”)).toArray()
Select dtCorrected.Rows.Add(ra)).CopyToDataTable()
Error getting -dtcorrected either not declared or not in current scope