Hi, I have a data table and now i want to convert a particular row to datatype “Double”.
When i read the datatable it automatically reads as String type but i want to convert the row as double type.
This is the row that i want to convert … i tried Convert.double(row(“Last_Records”).tostring) but it shows error: input string was not in a correct format.
Once i read the excel file after performing a select sql query the format of the date changes like below:
i just want to filter out Initial records = Today OR Last rcords >= Yesterday and <= Today
but there is datatype mismatch says like string to double is not valid
You can use it. But if u want to see record for today it has to be:
Initial records >= Today and Initial records < Today.addDays(1) OR Last rcords >= Today.AddDays(-1) and Last rcords < Today.addDays(1)
It will give you logic (for 21.03.2021):
Initial records >= 21-03-2021 00:00:00 and Initial records < 22-03-2021 00:00:00 OR Last rcords >= 20-03-2021 00:00:00 and Last rcords < 22-03-2021 00:00:00