CSV dates: day first or month first?
03/04/2026 is 3 April or 4 March. A CSV does not say which. TidyImport's CSV converters test every date three ways and ask you when the file does not settle it. Try it in CSV to QBO (it has an "ambiguous dates" sample), CSV to QFX or CSV to OFX.
How the converter decides
- Each date is read as day/month/year, month/day/year and year/month/day. A reading stays only if it fits every date in the column.
- If one reading is left, it is used and the page tells you which.
- If two are left and they give different dates for some row, the converter stops and asks:
"03/04/2026" is 3 April 2026 (day first) or 4 March 2026 (month first). Which is right?
A date it can read in no way is listed as a problem row.
Three samples
- bank-export-ambiguous-dates.csv has 03/04, 05/04 and 07/04. Each fits both readings, so the converter asks.
- bank-export-day-first.csv settles itself: one date is
13/04/2026, and there is no month 13, so every date is read day first. - bank-export-us.csv settles itself the other way: its last date is
10/13/2026, so every date is read month first.
Settle it yourself
- Look for a date whose first or second number is above 12.
13/04can only be day first;04/13only month first. - Or compare one row with your bank statement.
- A year first (
2026-04-03) has one reading.
Opening the CSV in Excel? Open a bank CSV in Excel.
What is written
In the .qbo, .qfx or .ofx file the date is YYYYMMDD120000: year, month, day, then 12:00:00 (noon). The month and day are never swapped: the order written is the one that fits every date, or the one you choose when asked. The OFX date format is explained in date not in OFX format.
OFX Specification 2.2, section 3.2.8 (Financial Data Exchange).