Hi Team,
Try get data from SQL Server using Sql query… while write to xlsx file i am getting this error
Sequence: Unable to set cell value to 10/28/2021 17:54:59 +05:30
i Notice the error is Indian standard timing stamp +5:30. so that i want remove the +5:30 to write the data in excel.
can you tell linq query for that …
Thanks
Shyam
Anil_G
(Anil Gorthi)
October 13, 2023, 7:50am
2
@Shyam_Pragash
Please try this in invoke code with dt as in/out argument
dt.AsEnumerable.ToList.ForEach(sub(x) x("DateColumn")=x("DateColumn").ToString.Replace(" +5:30",""))
cheers
@Shyam_Pragash
try this in invoke code
For Each row As datarow In dt.AsEnumerable
row(“ColumnName”)=row(“Columname”).ToString.Replace(“+5:30”,“”).Trim
Next
cheers
Hi @Anil_G
Thanks
I have 220 columns in sql data so that i didnt mention columns name individually
i want to find all the columns if +5:30 replace to Null…
Thanks
Shyam
Anil_G
(Anil Gorthi)
October 13, 2023, 9:28am
6
@Shyam_Pragash
Please try this
dt.AsEnumerable.ToList.ForEach(sub(x) x.itemArray = x.itemArray.Select(function(y) y.ToString.Replace(" +5:30","")).ToArray)
cheers
system
(system)
Closed
October 16, 2023, 4:23pm
8
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.