jonix icon indicating copy to clipboard operation
jonix copied to clipboard

Improvement on dateformat

Open larskristianhaga opened this issue 1 year ago • 1 comments

We just stumbled upon an issue with the dateformat when trying to parse the date value with the dateformat result.

Here is an complete example: image

Instead of the parser giving out YYYYMMDD, that is not usable directly should it not give out yyyyMMdd instead? The latter is parseable with eg DateTimeFormatter

larskristianhaga avatar Mar 20 '24 11:03 larskristianhaga

well, I guess the people from EDItEUR that maintain the Onix standard do not concern themselves with how DateTimeFormatter expects to find the format.. they use their own interpretation of data-time format. Your code needs to transform their format into Java's. If you do that, that could be a nice contribution to Jonix as a utility function.

zach-m avatar Apr 05 '24 12:04 zach-m