日期顯示成數字時
- 選擇
- 確認
Converting Excel to CSV turned dates into numbers like "45,000". Here are the cause and remedy. How Convert Excel to CSV or JSON handles dates is explained.
步驟
- With "Choose one .xlsx Excel file", choose the file.
- Choose the "Sheet" and "Format".
- Check the date column in "After conversion".
Why they become numbers
Excel stores dates as numbers called "serial values". For example, 21 October 2026 is a certain fixed number. It is displayed as a date only when the cell's "display format" is date.
Cells output as dates
Cells whose display format is "Date" in Excel come out in the form "2026-10-21".
Cells that come out as numbers
- Date numbers entered in a cell whose display format remains "General" or "Number"
- Dates typed as text (typing "2026/10/21" as a string) come out as text as they are
如何修正
- In Excel, select the date column.
- In "Format Cells", set the display format to "Date".
- Save again.
- Convert again with this tool.
Date format
Converted dates are in the form "year-month-day". If you want another format, change the format in Excel or similar after conversion.
Cells with time
Cells containing both date and time may be output including the time part. Check as needed.
A useful approach
When dates come out as numbers, fixing the display format in Excel and converting again is more reliable than correcting afterwards.
示例
The order date column was output as numbers like "46,317". After fixing the column's display format to "Date" in Excel, saving again and converting again, it came out as "2026-10-21".
Common stumbling blocks
- Only some cells are numbers: only those rows' cells have a different display format.
- Japanese era display: the output is in Western calendar years.
- Empty cells: output as empty.
Frequently asked questions
How do I turn numbers back into dates?
In Excel, change the number cells' display format to date.
小結
Dates become numbers because the display format isn't date. Fix it in Excel and convert again.
使用「把 Excel 轉換成 CSV 或 JSON」(免費)搭配使用的工具
- 把 CSV 轉換成 Excel(.xlsx):把 CSV 轉換成 Excel(.xlsx)檔案。
- CSV 與 JSON 互相轉換:立即在 CSV 和 JSON 之間互相轉換。
- 提取 Word 檔案中的文字:提取 Word 檔案中的純文字。