Keep Excel from converting dates when opening/saving CSV -
Is there a way to set a default date format in Excel in four digit years?
Our process achieves the CSV files generated by external processes (like SAS, SPSS) and reads in another application. It is sometimes necessary to open, edit and save a CSV, for example to remove the column of sensitive data, correct the outdoors.
The challenge is that Excel custom dates read in CSV (e.g. 8/23/2013
), converts them into dates and displays them with two digit years So when you save it, the dates are stored as two digits, thus facing the Y2K problem itself.
I know that it is not possible to stop recognizing dates in Excel (at least by specifying the format for each column using text import wizard from file or audio without changing CSV). But may it be possible to get your default date format to use four digits?
current
- From the Windows Start menu, click on the control panel
- Double-click on the regional and language options icon or folder.
- In the Regional and Language Options dialog box, click the Regional Options tab
- Click Customize.
- Click on the Date tab
- In the short date format list, click on a format that uses four digits for the year ("yyyy"
Comments
Post a Comment