I'd love to have date support another common format, like it does with
mm/dd/yyyy for the U.S.[1].
dd.mm.yyyy (e.g. 16.01.2026) is used in a lot of countries (30 if I
counted correctly [2]) , especially in and around Europe. Thanks to the
dots it is not ambiguous and does not clash with any of the existing ones.
There is also a shorter form omitting the year as in dd.mm. (16.01.)
like the U.S. mm/dd .
The patch for gnulib looks easy enough, so I've added it below. I can
also add one for corelib where the docs and the actual date format tests
are, I think? gnulib's test-parse-datetime.c seems to test only general
date parsing.
date: add parsing for common European dd.mm.yyyy and dd.mm. formats
---
 lib/parse-datetime.y | 13 +++++++++++++
 1 file changed, 13 insertions(+)
diff --git a/lib/parse-datetime.y b/lib/parse-datetime.y
index 85a7a92..9456f48 100644
--- a/lib/parse-datetime.y
+++ b/lib/parse-datetime.y
@@ -847,6 +847,19 @@ date:
       pc->year = $5;
      }
    }
+Â | tUNUMBER '.' tUNUMBER '.'
+Â Â Â {
+    /* E.g., 17.6. */
+Â Â Â Â pc->day = $1.value;
+Â Â Â Â pc->month = $3.value;
+Â Â Â }
+Â | tUNUMBER '.' tUNUMBER '.' tUNUMBER
+Â Â Â {
+Â Â Â Â /* E.g., 17.6.1992Â */
+Â Â Â Â pc->day = $1.value;
+Â Â Â Â pc->month = $3.value;
+Â Â Â Â pc->year = $5.value;
+Â Â Â }
  | tUNUMBER tMONTH tSNUMBER
    {
     /* E.g., 17-JUN-1992. */
--
2.43.0