Case Insensitive DateFormatSymbols for parsing

Bernd Eckenfels ecki at zusammenkunft.net
Fri Jul 15 12:17:20 UTC 2022


Hello,

I noticed that it is surprisingly hard to make SimpleDateFormat accept all-uppercase month names while parsing. Even with a custom DateFormatSymbols that’s hard because you can only specify a single symbol for a month name. For parsing it would be good if you can either specify a list of names like “June,june,JUNE” or have it allow a special case insensitive configuration option. (The list would also allow custom short forms like “ja” “fe” but not “ju”’

Am I missing something?

Gruss
Bernd
--
http://bernd.eckenfels.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20220715/614a3dce/attachment.htm>


More information about the core-libs-dev mailing list