How to Stop Excel from Changing Date Formats in CSV Files
Question details
The user needs to prevent Excel from automatically changing the date format when opening CSV files provided by colleagues.

- Product
- Microsoft Excel
- Device & OS
- Windows
- Scenario
- Opening a shared CSV template or file containing dates formatted specifically as dd/mm/yyyy.
- Observed behavior
- Excel automatically overrides the original formatting and converts the dates to match the system's default format (e.g., dd-mm-yy), even though the dates display correctly when viewed in a plain text editor like Notepad.
Before adjusting any system settings, open your CSV file in a plain text editor like Notepad to confirm exactly how the original date data was generated and stored.
Adjust Windows Regional Date Settings
Since Excel relies on your system's default region settings to interpret and display dates in CSV files, aligning your Windows settings with your desired format will solve the issue globally.
CSV files are plain text documents that do not save formatting metadata. When you double-click a CSV file, Excel attempts to be helpful by automatically applying your Windows default date formatting to any column it recognizes as a date.
By changing the Windows 'Short date' format, you can dictate exactly how Excel interprets and displays these values without altering the raw data.
Press the Windows key, type 'Control Panel', and open the application. Alternatively, navigate to your Windows Settings and select 'Time & Language'.
In the Control Panel, click on 'Clock and Region' and then select 'Region'. If you are using Windows Settings, click on 'Date, time & regional formatting'.
Locate the 'Short date' dropdown menu. Change it to match the exact format you want Excel to use (for example, dd/mm/yyyy).
Click 'Apply' and then 'OK' to save the changes. Completely close Microsoft Excel and reopen your CSV file to view the corrected date formats.

Import the CSV File Using the Text Import Wizard
If you cannot or do not want to change your overall Windows system settings, you can bypass Excel's automatic formatting by manually importing the CSV data as plain text.
Easily Manage CSV Date Formats with WPS Spreadsheets
Avoid automatic formatting headaches with WPS Office. Its straightforward Data Import tool allows you to specify exactly how columns should be read, ensuring dates and numbers remain exactly as they appear in your raw CSV file.
- 1. Launch WPS Spreadsheets: Open WPS Office, navigate to Spreadsheets, and create a new blank document.
- 2. Initiate Data Import: Go to the 'Data' tab on the main ribbon, click on 'Import Data', and select 'Import Data' from the dropdown menu.
- 3. Select Your File Source: Choose 'Select Data Source' in the prompt, browse to locate the problematic CSV file on your computer, and open it.
- 4. Configure the Delimiter: In the Text Import Wizard, select 'Delimited', click Next, choose the character that separates your data (like a Comma), and click Next again.
- 5. Set Column Format to Text: Click on the column containing your dates in the Data preview section. Under 'Column data format', choose 'Text' and click Finish to import the data exactly as originally formatted.

Frequently Asked Questions
Why does Excel automatically change my CSV date format?
CSV (Comma-Separated Values) files contain raw text and do not store any formatting metadata. Because of this, when Excel opens a CSV directly, it assumes the data needs formatting and automatically applies your Windows system's default regional date settings to any text that resembles a date.
Can I permanently save a specific date format within a CSV file?
No. A CSV is strictly a plain-text format and cannot retain custom font styles, cell colors, or specific data formatting rules. The visual representation of the data will always depend entirely on the software used to open it and the software's default settings.
How do I stop Excel from deleting leading zeros in CSV files?
Similar to date formatting, Excel attempts to convert numeric strings (like '00123') into standard mathematical numbers ('123'). To prevent this, do not open the CSV by double-clicking it. Instead, use the 'Get Data' or 'Import Text' features and explicitly define the column's format as 'Text' before loading it.




