Hi All,
I am working on a requirement in which one csv file needs to be converted to excel.
After conversion, the data format is giving issues in excel like :
Can anyone help how to resolve this.
PFA: ExlToCsvConversion.zip (17.2 KB)
Hi All,
I am working on a requirement in which one csv file needs to be converted to excel.
After conversion, the data format is giving issues in excel like :
Can anyone help how to resolve this.
PFA: ExlToCsvConversion.zip (17.2 KB)
They are only warnings, which you can ignore.
If you still want to fix them, there are multiple ways
eg.
str = “10-08-18”
str = str.substring(0,6) + “20” + str.substring(6,2)
str = “'123” //second problem
str = str.replace ("’", “”) //replace ’ by space
format the column
Open CSV and save as excel
CSV_To_Excel_Conversion.zip (17.3 KB)
Thanks @kirti.iyer,
For Date Format its working but for Other columns conversion from string to int or string to double is still having issue.
I tried these as well
row.Item(“Item”) = Convert.TOInt32(row.Item(“Item”))
row.Item(“Item”) = CInt(row.Item(“Item”))