FN-VALUE-002: A date as text takes at most two digits for month and day
Quirk · measured · recorded 2026-11-04
In a three-part numeric date, leading zeros are not free. VALUE("2024/02/01") is 45323, but VALUE("2024/02/001") and VALUE("2024/002/01") are #VALUE!, and so is any month or day of three or more digits in the 45 forms read. A year of one, two or four digits is read: "1/2/1" and "1/02/01" are 2001-02-01, "24/2/1" is 2024-02-01, while "0001/2/1" is #VALUE!. Month 0 and day 0 give #VALUE!. The same limit holds with hyphens: "2024-02-001" through VALUE, and "2024-002-01" and "2024-02-001" through DATEVALUE, are #VALUE!. The settings of this run are en-ZA: decimal point, space as thousands separator, year-month-day date order.
| Call and input route | Inputs | Excel | Correct value | Recorded in |
|---|---|---|---|---|
=VALUE("2024/02/01")formula-literal | As typed | 453230x40e6216000000000 | — | Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA |
=VALUE("2024/02/001")formula-literal | As typed | #VALUE! | — | Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA |
=VALUE("2024/002/01")formula-literal | As typed | #VALUE! | — | Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA |
=VALUE("1/2/1")formula-literal | As typed | 369230x40e2076000000000 | — | Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA |
=VALUE("24/2/1")formula-literal | As typed | 453230x40e6216000000000 | — | Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA |
=VALUE("0001/2/1")formula-literal | As typed | #VALUE! | — | Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA |
=VALUE("2024/02/0")formula-literal | As typed | #VALUE! | — | Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA |
=VALUE("2024-02-001")formula-literal | As typed | #VALUE! | — | Excel 16.0.20527.20088 Current Channel, Windows 64-bit (NT 10.0.26200), x86-64, AMD Ryzen 7 4800H, en-ZA |
=DATEVALUE("2024-002-01")formula-literal | As typed | #VALUE! | — | Excel 16.0.20527.20088, Windows, bitness and CPU not recorded in this reading file |
Basis: 45 recorded VALUE readings covering year, month and day tokens of one to five digits, and 2 DATEVALUE readings.
Open: Three-digit years were not read.
Open: Other date orders and locales were not read.
Evidence and capture sources
- DnaCalc · apps/dna-onecalc/tests/acceptance.rs 55697ab4f74bab852fef7bc76b08588c3a5f408e · delivered_fn4_digit_scripts_and_numeric_date_widths recorded answers pinned
- DnaCalc · crates/calc-func/tests/captures/fn4_questions/functions-fn4-list-controls.capture.json 2d0eddcac86413014643af81d646581d54ba57bc · sheets ql041 to ql085 45 recorded readings
- DnaCalc · crates/calc-func/tests/captures/fn4_questions/functions-fn4-list-controls.capture.json 2d0eddcac86413014643af81d646581d54ba57bc · sheet ql078, row 20, column 10
- DnaCalc · crates/calc-func/tests/captures/fn4_questions/functions-fn4-list-controls.capture.json 2d0eddcac86413014643af81d646581d54ba57bc · sheet ql079, row 20, column 10
- DnaCalc · crates/calc-func/tests/captures/fn4_questions/functions-fn4-list-controls.capture.json 2d0eddcac86413014643af81d646581d54ba57bc · sheet ql081, row 20, column 10
- DnaCalc · crates/calc-func/tests/captures/fn4_questions/functions-fn4-list-controls.capture.json 2d0eddcac86413014643af81d646581d54ba57bc · sheet ql041, row 20, column 10
- DnaCalc · crates/calc-func/tests/captures/fn4_questions/functions-fn4-list-controls.capture.json 2d0eddcac86413014643af81d646581d54ba57bc · sheet ql065, row 20, column 10
- DnaCalc · crates/calc-func/tests/captures/fn4_questions/functions-fn4-list-controls.capture.json 2d0eddcac86413014643af81d646581d54ba57bc · sheet ql057, row 20, column 10
- DnaCalc · crates/calc-func/tests/captures/fn4_questions/functions-fn4-list-controls.capture.json 2d0eddcac86413014643af81d646581d54ba57bc · sheet ql084, row 20, column 10
- DnaCalc · crates/calc-func/tests/captures/fn4_questions/functions-fn4-list-controls.capture.json 2d0eddcac86413014643af81d646581d54ba57bc · sheet ql085, row 20, column 10
- DnaCalc · crates/calc-func/tests/captures/fn4_questions/DATEVALUE.reading.json 2d0eddcac86413014643af81d646581d54ba57bc · fn7-DATEVALUE-digits-5