This seems to be a slightly new twist on a recurring issue.
I am writing a csv file using a vb.net application i have written and one of the fields is the date using the statement Format(Now, "dd/MMM/yyyy") and opening the file in notepad i can see that it is correct eg 20/Aug/2009.
However opening in excel 2007 changes the contents of the cell to 20/08/2009 (interprets date correctly) and formats to 20-Aug-09.
Excel seems to be taking these decisions on its own and i wondered if there is any way of telling it to format the date with 4 digits (for instance) as it opens the file.
There doesnt seem to be a 'default date format' setting in excel that i can find.
The regional settings on my pc are short date 20/08/2009 long date 20 August 2009 (i am in the UK)
Anybody got any thoughts on this?
I am writing a csv file using a vb.net application i have written and one of the fields is the date using the statement Format(Now, "dd/MMM/yyyy") and opening the file in notepad i can see that it is correct eg 20/Aug/2009.
However opening in excel 2007 changes the contents of the cell to 20/08/2009 (interprets date correctly) and formats to 20-Aug-09.
Excel seems to be taking these decisions on its own and i wondered if there is any way of telling it to format the date with 4 digits (for instance) as it opens the file.
There doesnt seem to be a 'default date format' setting in excel that i can find.
The regional settings on my pc are short date 20/08/2009 long date 20 August 2009 (i am in the UK)
Anybody got any thoughts on this?