Browser-based CSV transform

Format CSV Dates

Rewrite one date column in a single format and see which values were ambiguous or unreadable. Everything runs locally in your browser — paste CSV, set options, preview, then copy or download.

Input

Paste CSV or upload a file

Options

Configure how this transform runs

Output

Two-digit years: 00–69 become 2000–2069, 70–99 become 1970–1999. A time of day is kept as HH:mm.

Output Preview

Transformed CSV

Run the transform to preview CSV output here.

Format CSV Dates

Operator: Abdulla Al Fahad. How tools are built and checked

A date column assembled from more than one source rarely agrees with itself. An online store exports 2026-11-12, a payment provider writes 12 Nov 2026, and a colleague in London types 31/10/2026 into the same sheet. Sorting that column puts April after November, and a filter for October misses half the rows. Format CSV Dates reads one column, works out the year, month and day of each value, and writes all of them back in the single format you pick.

Under Detect, a numeric date is read month first only when both numbers are 12 or less, and every such value is flagged: 12/11/2026 becomes 2026-12-11 and goes on the ambiguous list, while 31/12/2026 can only be 31 December and is not flagged. The summary lists up to 20 ambiguous and 20 unreadable values with their row numbers rather than converting them without comment. Values it cannot read at all stay exactly as they were.

Key features

  • One column rewritten in one of five output formats
  • Detect, Day first or Month first reading order for numeric dates
  • Calendar check that rejects 30 February and 29 February in non-leap years
  • Time of day kept as HH:mm when the input has one
  • Replace the column, or add a <column>_formatted column beside it
  • Report of converted, already formatted, ambiguous and unreadable values with row numbers

Five output formats are offered: YYYY-MM-DD (2026-11-12), DD/MM/YYYY (12/11/2026), MM/DD/YYYY (11/12/2026), D Mon YYYY (12 Nov 2026) and Mon D, YYYY (Nov 12, 2026). Months in the two text formats use three-letter English abbreviations.

Accepted input covers year-first dates with a dash, slash or dot (2026-11-12, 2026/11/12, 2026.11.12), numeric dates with the year last using / . or - as the separator, two-digit years, and English month names in full or abbreviated (12 Nov 2026, Nov 12, 2026, 12-November-2026, 3rd Nov 2026). A two-digit year from 00 to 69 is read as 2000 to 2069, and 70 to 99 as 1970 to 1999, so 1/2/75 lands in 1975.

A time of day after the date is kept and written as HH:mm after a space: 2026-11-12T08:30 becomes 12/11/2026 08:30 in day-first output, and 2:05 PM becomes 14:05. Seconds and fractions of a second are dropped. A value with a time zone suffix such as Z or +01:00 is treated as unreadable, because quietly removing the zone would change which moment the value refers to.

How it works

Each cell in the chosen column is trimmed and any trailing time is split off. The date part is then matched against four shapes: year first, numeric with the year last, day then month name, and month name then day. For numeric dates the reading order decides which number is the day.

Under Detect, a first number above 12 can only be a day, so 31/12/2026 is read day first. A second number above 12 can only be a day too, so 12/31/2026 is read month first. When both numbers are 12 or less the value is read month first and marked ambiguous; when the two numbers are equal, as in 05/05/2026, both readings give the same date and it is not flagged.

The year, month and day are then checked against the real calendar, including leap years. A value that passes is written in the output format. If the result is identical to the original text, it is counted as already in format; otherwise it is counted as converted. A value that fails at any step stays unchanged and goes on the unreadable list.

Common use cases

  • Merging a Shopify order export (2026-11-12) with a PayPal activity report (12 Nov 2026) so the combined file sorts by date.
  • Preparing a list of UK invoice dates (31/10/2026) for a US accounting import that expects MM/DD/YYYY.
  • Turning mixed survey timestamps into ISO dates before loading them into a database column of type DATE.
  • Checking a hand-typed sign-up sheet for impossible dates such as 30/02/2026 before it goes into a CRM.

How to use this tool

  1. Paste the CSV or upload a file. The column list fills in from the header row.
  2. Pick the date column and the output format.
  3. Leave the reading order on Detect if you are unsure, or choose Day first or Month first if you know how the source writes dates.
  4. Choose whether to replace the column or add a <column>_formatted column, then run the transform.
  5. Read the summary above the preview. Review any ambiguous and unreadable rows it lists before downloading.

Example

Input: an order_date column from three sources

order_id,order_date
1041,2026-11-12
1042,12 Nov 2026
1043,31/10/2026
1044,03/04/2026
1045,"Nov 3, 2026 14:05"
1046,2026-02-29

Output in DD/MM/YYYY with reading order Detect

order_id,order_date
1041,12/11/2026
1042,12/11/2026
1043,31/10/2026
1044,04/03/2026
1045,03/11/2026 14:05
1046,2026-02-29

Tips for best results

  • If you know the whole file was written day first, set the reading order to Day first instead of relying on Detect. That turns every ambiguous value into a firm reading and the ambiguous count drops to zero.
  • Use Add <column>_formatted on the first pass. With both columns side by side you can scan the listed ambiguous rows against the original text before replacing anything.
  • Choose YYYY-MM-DD when the file will be sorted as text or loaded into a database. It is the only one of the five formats whose alphabetical order matches date order.

Common pitfalls

Detect decides each value on its own. A file where most rows are day first will still have its 03/04/2026 rows read as March 4, because nothing inside that single value says otherwise. Check the ambiguous list, and switch to Day first when your source is a day-first country.

Excel serial numbers such as 46338 and compact forms such as 20261112 are not recognised as dates; they are reported as unreadable and left alone.

Weekday names in front of the date (Thu 12 Nov 2026) and non-English month names (12 noviembre 2026) are not read.

Common errors and how to fix them

The summary lists 2026-02-29 as unreadable.
2026 is not a leap year, so 29 February does not exist. The value is left as typed. Correct it at the source, since the tool cannot know which day was meant.
Row 5 shows as ambiguous and became 04/03/2026, but the order was placed on 3 April.
Detect reads 03/04/2026 month first. Set the reading order to Day first and run the transform again; the row then converts to 03/04/2026 in day-first output and is no longer listed.
A column named "order_date_formatted" already exists.
The add mode needs a free column name. Rename or remove the existing column, or switch to Replace the column.
Timestamps like 2026-11-12T08:30:00Z are all unreadable.
Values with a time zone are left untouched on purpose. Remove the zone suffix first if the times are already in the zone you want, then run the tool again.

Best practices

  • Fix the reading order per source file. If one export is day first and another is month first, convert each before you combine them, not after.
  • Treat a non-zero ambiguous count as a question to answer, not a warning to ignore. Most files with ambiguous values contain at least one unambiguous value like 25/06 that shows which order the source uses.
  • Keep the original column until the converted one has been checked against the report, then drop it with Remove CSV Columns if you no longer need it.

Why 03/04/2026 is reported instead of guessed

In the United Kingdom, most of Europe and much of Asia, 03/04/2026 means 3 April 2026. In the United States it means March 4, 2026. Both readings produce a real date, so no calendar check can catch a wrong choice. The value is converted, it looks correct, and it is a month off.

Detect resolves what it can from the value itself: 31/10/2026 can only be 31 October, and 10/31/2026 can only be October 31. For a value where both numbers are 12 or less, it reads month first, writes the result, and adds the row to the ambiguous list with the original text. That list is the point of the feature. A silent guess on a file of 2,000 invoices could shift several hundred of them by weeks, and nothing in the output would show which ones.

If your file is consistent, you can remove the ambiguity entirely by telling the tool the order. Day first reads 03/04/2026 as 3 April, Month first as March 4, and neither marks anything as ambiguous.

  • 31/12/2026 under Detect: day first, because 31 cannot be a month.
  • 12/31/2026 under Detect: month first, because 31 cannot be a month.
  • 03/04/2026 under Detect: March 4, listed as ambiguous.
  • 03/04/2026 under Day first: 3 April, not listed.
  • 02/30/2026 under Detect: month first, but 30 February does not exist, so it is unreadable.

What counts as already in format

The tool compares the rewritten text with the original. If you convert to YYYY-MM-DD and a cell already holds 2026-11-12, nothing changes and it is counted as already in format. A cell holding 2026-11-12T08:30 is counted as converted, because the output is 2026-11-12 08:30 with a space in place of the T. Blank cells stay blank and are counted separately, not as unreadable.

Frequently asked questions

Does the tool change any column other than the one I pick?

No. Only the chosen column is read and rewritten. In add mode the original column is untouched and the new <column>_formatted column is placed directly to its right.

How are two-digit years handled?

00 to 69 become 2000 to 2069, and 70 to 99 become 1970 to 1999. So 12/11/26 is read in 2026 and 1/2/75 in 1975. If your data has birth years in the 1960s written with two digits, they will be placed in the 2060s; fix those at the source.

Why did my seconds disappear?

Times are written as HH:mm in every output format, so 08:30:45 becomes 08:30. Keep the original column with add mode if you need the seconds.

How many problem values are listed?

The summary always gives the full counts. Up to 20 ambiguous and 20 unreadable values are listed with their row numbers, where the header is row 1, matching the row numbers a spreadsheet shows.