Skip to content

Free CSV tools

Fix CSV date format online

Upload a CSV, pick the date columns and the format your import expects, and download a file where every date is written the same way. Cells that are not dates stay as they are.

Runs in your browser. Your file is never uploaded.

Before and after

Before
order_idorder_date
100103/14/2024
10023/9/24
1003Mar 11 2024
10042024/02/05
100524-Jan-2024
1006not shipped
After
order_idorder_date
10012024-03-14
10022024-03-09
10032024-03-11
10042024-02-05
10052024-01-24
1006not shipped

Six rows, five ways of writing a date. Because 03/14/2024 can only be month first, the column is read as US order, every date becomes YYYY-MM-DD, and the text not shipped is kept.

Why it happens in Excel and Google Sheets

A CSV has no date type. Every date is plain text, written however the last program decided. When you save a sheet as CSV, Excel uses the short date format from your computer's regional settings, so the same workbook gives 03/14/2024 on a US laptop and 14/03/2024 on a UK one. Opening a CSV in Excel goes the other way: Excel converts anything that looks like a date, sometimes with day and month swapped, and a two-digit year like 3/9/24 leaves the century to a guess.

Google Sheets follows the spreadsheet's locale (File > Settings), and File > Download > CSV writes each date the way it is displayed. Combine a Sheets export with rows typed by hand and rows from another system, and one column ends up with three or four formats. Most importers accept exactly one, often ISO YYYY-MM-DD. The risky case is 03/04/2024: it is a valid date in either order, so a mismatched import does not fail. It stores the wrong day.

How to fix it

With this free tool (up to 1,000 rows)

  1. Drop your CSV on the box above, or choose Try a sample. If names or accents look garbled in the preview, run the file through fix csv encoding first.
  2. Check the date columns. Columns where most values look like dates are ticked for you.
  3. Choose the output format. YYYY-MM-DD is the safest choice when you are not sure what the importer wants.
  4. If the tool says it cannot tell month from day, set In your file, 03/04/2024 means to the order your file uses.
  5. Check the highlighted cells in the preview, then download the fixed CSV.

With Rowforma, for the whole file and every import

  1. Create a free Rowforma account and upload the CSV.
  2. In your template, set the column's type to date and pick the format your import needs.
  3. Rowforma converts the dates it can read with certainty and flags the ones whose day and month order is unclear.
  4. Decide each flagged value, then download the ready file. Rows that still fail go to a separate file with the reason.

Fixing the same dates every week? Let Rowforma do it.

Save the date format once in a Rowforma template. Every file you upload is checked against it, ambiguous dates wait for your decision, and the other columns are checked against the rules you set in the same pass.

Try Rowforma freeFree plan. No card needed.

Questions

Which date format should I use for an import?

Use the format your importer's documentation names. If it names none, choose ISO YYYY-MM-DD: it cannot be read two ways, and it sorts correctly even as plain text.

Why does Excel change my dates back after I fix them?

Opening a CSV in Excel converts the dates again, and saving rewrites them in your regional format. Upload the downloaded file straight to your import, or open it in Excel through Data > From Text/CSV and set the date column to Text.

What happens to cells that are not dates?

They are left exactly as they were and counted as cells left as they were, so notes like "not shipped" and empty cells come through the conversion unchanged.