Re: Case Insensitive DateFormatSymbols for parsing

2022-07-15 Thread Bernd Eckenfels
@openjdk.org Betreff: Re: Case Insensitive DateFormatSymbols for parsing Hi Bernd, Perhaps use java.time.format.DateTimeFormatter. You can create a case-insensitive DateTimeFormatterBuilder using .parseCaseInsensitive(). https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/time/format

Re: Case Insensitive DateFormatSymbols for parsing

2022-07-15 Thread Roger Riggs
Hi Bernd, Perhaps use java.time.format.DateTimeFormatter. You can create a case-insensitive DateTimeFormatterBuilder using .parseCaseInsensitive(). https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/time/format/DateTimeFormatterBuilder.html#parseCaseInsensitive() Regards, Roge

Case Insensitive DateFormatSymbols for parsing

2022-07-15 Thread Bernd Eckenfels
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