I have an excel sheet with date columns in the format yyyy-mm-dd
When I export this file to csv format the date format (with excel or openoffice) has been changed to mm/dd/yyyy
Aside from the fact that mm/dd/yyyy doesn’t make any sense to me, is there a way I can prevent excel or openoffice from converting the dates from yyyy-mm-dd to mm/dd/yyyy when I export to csv format?
I need to import the csv file into a mysql database.
Originally posted by jamesbond
[B]I have an excel sheet with date columns in the format yyyy-mm-dd
When I export this file to csv format the date format (with excel or openoffice) has been changed to mm/dd/yyyy
Aside from the fact that mm/dd/yyyy doesn’t make any sense to me, is there a way I can prevent excel or openoffice from converting the dates from yyyy-mm-dd to mm/dd/yyyy when I export to csv format?
I need to import the csv file into a mysql database. [/B]
I created a simple two-column, four-row Excel 97 spreadsheet that looked like
One 2002-08-27
Two 2002-08-28
Three 2002-08-29
Four 2002-08-30
Five 2002-08-31
The date field I set the format to “yyyy-mm-dd” by right clicking the range, selecting format, selecting custom and entering the format in the field. When I did a save as to CSV, this was the result:
Ahh, could be version-specific. I haven’t tried Open Office yet, although a friend did download it for me. I’m going to try it on my Linux box. I’ve heard conflicting things about how the windows version co-exists with MS Office and I’d rather not take the chance of messing something up. What’s your experience been?
If Open Office is having an issue with this, it might be worth submitting a bug report at openoffice.org. Just a thot.