In an Excel file, one of the “ColDate” column contain formula and we need to extract the value of it.
Formula=now()-54/24
Value = 9/1/24 10:59 Am
Expected output = 9/1/24 10:59 Am
When tried in for each datatable, Currentrow.item(“ColDate”).Tostring
getting Value = 45536.4407
Tried with Copy range,
if select Value in the properties getting Column Value= 45536.4407
if Select Formula in the properties getting Column value= now()-54/24
Expected output = 9/1/24 10:59 Am
What is column data type in the excel ?
If possible try to change the column data type to date time or string and see what results you are getting.
If manual setting can not be done
You can add one line script to change column data type before for each loop starts