3 ms·
I made a similar tool that could take almost arbitrery text strings like “mar 27, ’09” or “07/08/97” and generate a list of all valid interpretations. Eg. “07/0
by continuational 9y ago
I made a similar tool that could take almost arbitrery text strings like “mar 27, ’09” or “07/08/97” and generate a list of all valid interpretations. Eg. “07/08/97” would generate [{d: 7, m: 8, y: 97}, {d: 8, m: 7, y: 97}], but not any where 97 is a day or month, since that wouldn’t be a valid date.