We have VBA for exporting data from FlexGrid to Excel. This is done with assigning cell formats to the columns. We are migrating the project to VB.NET where we are following the same process by assigning the date format to the cells as below:
objWorkSheet.Cells(irow, icol).EntireColumn.NumberFormat = "dd/mm/yyyy"
I am able to see the correct date format in Excel after exporting. For example: "30/10/2010". But the same is not the case in a test environment where this date appears as "10/30/2010". I have tested on another developer machine that also shows "10/30/2010" though it displays correctly on my machine, whose date format is "dd/MM/yyyy".
What it is happening I don't understand?