Two-digit-year dates in a CSV
An export that writes the year with two digits leaves the century out, and each program fills it in by its own rule. Choose the file below: the page works in your browser, writes every date it can read as year-month-day with a four-digit year, shows the first 20 cleaned rows and lists every line it left out, with the reason. The rule it applies is written out under the tool.
Clean your CSV export
The cleaner detects the delimiter (comma, semicolon or tab), looks for a header row with a date column and an amount column, and writes eight fixed columns, comma-delimited: date, description, amount, currency, fee, net, reference and source. It recognises common header names in English, Spanish, German and French, such as Date, Fecha, Buchungstag, Amount, Importe, Betrag and Montant.
Your file is read in your browser and is never uploaded, stored or logged. It is held in the memory of this tab only, and closing or reloading the page discards it. Operator: Augeo. See the privacy notice.
Exports do not share one layout, and this page makes no promise about yours: the free preview shows what it does to your file.
The cleaning logic is checked by an automated test script that runs the engine file of this site over six synthetic sample files and a set of checks of the parsing rules; it ran in a sandbox before this site was published and finished with no failed check. The script does not open this page in a browser, does not test the licence key step, and nothing was tested against a real export from any provider. Use the free preview to check your own file.
Report
Warnings
Lines not parsed
Lines dropped
Preview of the cleaned rows
| line | date | description | amount | currency | fee | net | reference | source |
|---|
Download the full cleaned file
- Price: 6 USD, paid once on Gumroad. No subscription. You receive a licence key.
- What the key unlocks: the download of every cleaned row of the file you chose, as one CSV named after your file with -cleaned.csv at the end, instead of the first 20 rows on screen. The report and the way files are read stay the same.
- The key is for one buyer. Runs are not counted and no number of runs is promised. The key is kept in the memory of this page only, so you enter it again after closing or reloading the page.
- Refunds are requested through your Gumroad receipt and follow Gumroad's refund policy.
- Try the free preview first. If the preview cannot read your file, the full download cannot either.
Get a licence key on Gumroad for 6 USD
Prefer a file you keep? Offline CSV cleaner, single HTML file, 6 USD on Gumroad. The offline file was built from an earlier version of the engine, and its build self-check covered the six original sample layouts (PayPal activity, Etsy sold orders, Etsy monthly statement and three bank layouts); it does not include the later Fee/Net column reading used for the Stripe, Shopify, eBay and Square pages.
How a two-digit year is read
- A two-digit year is read at the end of the date. It is accepted as the last part of an all-numeric date whose parts are separated by slashes, hyphens or dots, and as the last part of a date written as day, month name, year.
- The century follows one fixed rule. A two-digit year below 70 is placed in the 2000s, and a two-digit year from 70 to 99 in the 1900s. The page has no setting to change this. If your file holds dates before 1970 or after 2069 written with two digits, they come out in the wrong century.
- The date is written with four digits. The output date is always YYYY-MM-DD.
- The order of day and month still has to be settled. A two-digit year does not tell whether the day or the month comes first. As with four-digit years, the order is taken from the file when one date has a day above 12, and when none does the page stops and asks you. Nothing is guessed.
- A time after the date is ignored. Only the date part is kept.
- Impossible dates are refused. A day the month does not have, counted in the year the rule gives, yields no date: the row is left out and listed under "Lines not parsed" with its line number and the text found.
Where it goes wrong
- A date that starts with a two-digit year is not read as year first. The cleaner knows year-first dates only with four digits. In a date written as two-digit year, month, day, it takes the first part for a day or a month and the last part for the year. When the parts happen to form possible dates, the file is read without an error and the dates are wrong. Compare the date column of the preview with your file before you use the output.
- Month name first with a two-digit year is not read. A date written as month name, day, two-digit year is not recognised, and the row is listed under "Lines not parsed". Day first with a month name and a two-digit year is read.
- Six digits with no separators are not read. See the page about compact dates.
- Month names are recognised in English only.
The test script checks one date with a two-digit year, read month first. The boundary between the two centuries and the cases under "Where it goes wrong" are not covered by it; they are stated here as the engine code has them. No sample file of this site holds two-digit years, so this page shows no rows before and after.
The output is always the same eight columns (date, description, amount, currency, fee, net, reference and source), comma-delimited. Columns of your file that are not among them are not carried over, so this is a cleaner for files of transactions and not a general CSV editor.
In a spreadsheet instead: spreadsheet programs fill in the century by their own cut-off, which may differ from the one above. After opening the file, format the date column to show four-digit years and look at the oldest and the newest date before you save.
Notices
- Privacy: files are read in your browser and never uploaded, stored or logged. Operator: Augeo.
- Independent tool, not affiliated with or endorsed by Etsy, PayPal, QuickBooks or any bank.
- Check the output before you use it. This is not accounting, tax or financial advice.
- Price of the full download: 6 USD one-time. The key is for one buyer. Refunds are requested through the Gumroad receipt.
- Only upload data you have the right to process. Choosing a file here does not send it anywhere, but you remain responsible for the data in it.