jonix
jonix copied to clipboard
Improvement on dateformat
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:
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
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.