When I convert the data from Excel to CSV, date column some of the dates have the leading zero in xlsx, are not showing in csv file. Below is the screenshot for your reference.
After converting into CSV:
As you can see the leading zeros are not shown in csv file. Can any one please help with the solution.
When excel is converted to csv the leading zeroes are copied too. However the csv file when opened doesn’t show them.You will have to format the csv data to show the leading zeroes.
You can do a recording to format the cells. Below is a link that explains required formatting.
@vinutha makes a good point.
Basically, an Excel file doesn’t keep formatting in the actual value, however CSV does. So you need to format the Excel file, then use Save As to save it to a CSV type and all the formatting will be maintained.
To format, I would suggest either using Invoke VBA or Type Into with Alt-key combo and keystrokes. Not sure which is easier, though, because using Cell formats is tricky unless you use the Default ones like here: