Convert Oracle date format masks to Java format masks
Have an application based on Oracle that stores data in text form (for display) and in native date format. It is being migrated to another application with a Java based front end that can only use Java format masks to display the dates in the desired display format.
Is there a way to translate the Oracle format masks to Java? I can do this in SQL or PL/SQL using the database or in Java.
I really don't want to write detailed code to parse the masks, although if parsers are available to take an oracle mask into its metadata (minute, year, etc), it may be possible for me to write the code.
This seems like something that must have been done many times over the years. I would prefer to reuse workable code rather than reinventing the wheel.
To be clear, I do not need to alter data or convert dates shown in string form. Just the format masks so the new app will display dates in the same manner as the old app. Fortunately, both apps handle interpreting the format masks in their native technology, so it is just converting the format mask.