A CSV file keeps no formatting. When you save, Excel writes each date as text, exactly as it looks in the cell at that moment. So set the format you want first: select the date column, press Ctrl+1, choose Custom, type yyyy-mm-dd, and select OK. Then use File, Save As (or Save a Copy) and choose CSV (Comma delimited). If the file has accented or non-Latin letters, choose CSV UTF-8 (Comma delimited) instead.
We tested this on November 29, 2026 in Excel 2024 (version 16.0, build 20625) on a PC with US settings. We put one date, March 4, 2026, into cells in ten ways and saved the file as CSV (Comma delimited). Then we opened a CSV file again to see what Excel made of the text.
What Excel wrote for the same date
Each row here is one cell formatted as shown in the first column. Nine of them hold the real date March 4, 2026 (the date and time row also holds 14:30). The last one holds the text 2026-03-04. The right column is the text that Excel put into the CSV file.
| Cell format | What the CSV file holds |
|---|---|
| m/d/yyyy | 3/4/2026 |
| mm/dd/yyyy | 03/04/2026 |
| dd/mm/yyyy | 04/03/2026 |
| yyyy-mm-dd | 2026-03-04 |
| d-mmm-yy | 4-Mar-26 |
| mmmm d, yyyy | “March 4, 2026” |
| dddd, mmmm dd, yyyy | “Wednesday, March 04, 2026” |
| yyyy-mm-dd hh:mm | 2026-03-04 14:30 |
| General | 46085 |
| Text (the cell holds the text 2026-03-04) | 2026-03-04 |
A General cell writes the number. If a real date sits in a cell formatted as General, the file holds 46085, the day count. The post on why Excel shows a date as a number explains it.
Formats with a comma get quotation marks. “March 4, 2026” is inside quotes so that the comma is not read as a column break. A program that splits each line at the commas without following the quoting rule will cut such a row in two. If you are not sure how the receiving program reads CSV files, choose a style without a comma.
A narrow column does not matter. On screen, our date column showed ###### because it was too narrow. The CSV file still held the full dates, so we could not reproduce dates turning into #### in the file.
How to save it
- Make a copy of your workbook first, as an .xlsx file. Microsoft says all formatting is removed in text formats, and only the active sheet is saved.
- Select the date column. Press Ctrl+1 (Command+1 on a Mac) and choose Custom. Type yyyy-mm-dd and select OK. Use any other code if the person who gets the file needs it; the table above shows what each one writes.
- Choose File, Save As (or Save a Copy), and pick CSV (Comma delimited) in the file type box. For accented or non-Latin letters, pick CSV UTF-8 (Comma delimited), which is made for them. We did not test accented letters.
- Excel may ask about it. Microsoft’s help describes a reminder that only the current sheet is saved, and a warning that some features are not supported by text formats. If you only need the data, choose Yes.
In the one UTF-8 file we checked, which held 2026-03-04, the date text was the same as in the plain file, and the file began with three extra bytes, EF BB BF. Excel uses them to recognize UTF-8. A few programs show them as odd characters before the first column name. If you see this and the file has no accented letters, save with plain CSV (Comma delimited) instead.
If the person who opens the file sees everything in one column, the separator is the usual reason. The CSV format uses the separator from Windows, which was a comma on our PC. Microsoft explains how to change it.
What Excel does when it opens the file again
A CSV file is only text, so the next program decides what the text means. We wrote eight date styles into a CSV file and opened it in the same Excel, the way a double-click opens it, which uses the regional settings of the computer (US here).
| Text in the file | What Excel made of it |
|---|---|
| 2026-03-04 | a real date, shown as 3/4/2026 |
| 03/04/2026 | a real date, March 4, shown as 3/4/2026 |
| 04/03/2026 | a real date, April 3, shown as 4/3/2026 |
| 4-Mar-26 | a real date, shown as 4-Mar-26 |
| “March 4, 2026” | a real date, shown as 4-Mar-26 |
| “Wednesday, March 04, 2026” | text, left alone |
| 2026-03-04 14:30 | a real date and time, shown as ######### until the column is widened |
| 46085 | the number 46085 |
Look at the third row. A UK writer who meant 4 March and saved 04/03/2026 gets April 3 on a US computer, and nothing in the file says which order was meant. The second row is the right reading on a US computer. On a day-first computer the same text would be read as April 3. We could not test that. This is the problem in the US vs European date format post, and the reason for the advice below.
Look at the first row too. Excel read the year-first date correctly, then displayed it in its own style. The file did not change; only the display did. If you saved that sheet as CSV again, the first table says Excel would write 3/4/2026, the style it shows. The “Wednesday” style stayed text, because Excel did not recognize it as a date.
What to write into a CSV
For a file that will be opened by other people or loaded into other software, write yyyy-mm-dd. It has one standard reading, and it sorts in date order even as plain text. Excel read it correctly in our test. We could not test a computer set to a day-first country, so if you send a file to one, ask the first person who opens it whether the dates look right.
If you need a particular style, such as dd/mm/yyyy for a supplier, set that format before you save. The file will hold exactly that text, and anyone who reads it with a month-first computer will see different days. Our date format converter turns a column from one order to the other, in your browser, if the file has already gone out in the wrong one.
There is one more route. In a spare column, build the text yourself with =TEXT(A2,”yyyy-mm-dd”) and save that column. A formula like that returns text, so the CSV gets exactly those characters whatever the cell’s format. The letters in the code depend on Excel’s language. Microsoft’s German page for the TEXT function writes the day, month and year codes as TT, MM and JJJJ, so the same format there is JJJJ-MM-TT.
Sources
All pages below were read on November 29, 2026.
- Save a workbook to text format (.txt or .csv), Microsoft Support.
- Import or export text (.txt or .csv) files, Microsoft Support.
- Format a date the way you want in Excel, Microsoft Support.
- TEXT function, German page, Microsoft Support.



