[GNC] Bad date not caught
Dean Gibson
gnucash.stuff at mailpen.com
Thu Oct 12 20:02:47 EDT 2023
Actually,, ISO8601 describes the valid (& preferred) date
representations. Anything with dashes is presumed to be YYYY-MM-DD. Of
course, just because this is an international standard, doesn't mean
that everyone (including governments) follows it. This includes the US
FAA. which presumes MM-DD-YY.
So much for standards! I guess ISO8601 is pretty new (35 years ago) for
some organizations!
On 2023-10-12 16:27, john wrote:
> ...
>
> Another more involved fix would be to make the date parser a bit more liberal about delimiters and formats; the only slightly minor difficulty is ordering ambiguous sequences: for example 21-10-23 could be 21 October 2023 or 23 October 2021 and 5/7/9 could be the 9 July 2005, 7 May 2009, or 5 July 2009.
>
> Regards,
> John Ralls
>
More information about the gnucash-user
mailing list