BUT… in spite of my previous reply you are right @Sajith !!
I was surprised about the case of the AM/PM, as I thought it should be upper case, so I just went and tried it in KNIME 4.3.4
Using the format mask dd/MM/yyyy h:mm a
KNIME 4.3.4, converts 16/09/2021 6:07 PM
KNIME 4.4.1 converts 16/09/2021 6:07 pm
They both complain about the opposite case.
(I was testing this using locale en-AU as per the screenshot. The result of other locales may vary I guess)
Likewise the “a” in the “Date & Time to String” nodes also convert using the different case above, meaning that it has consistently changed with the newer KNIME, and not a bug in the node, so this is a bit of a “gotcha”!
Looking into this further, this appears to be a change in Java regarding default locales. You can see it mentioned here:
https://bugs.openjdk.java.net/browse/JDK-8211985
Reading the above article, this is a change to java. I have just tried this, and you can make the newer KNIME behave the OLD way by adding the following line to the end of your KNIME.INI file (located in same folder as your KNIME executable):
-Djava.locale.providers=COMPAT,CLDR
Restart KNIME and it will once again convert AM/PM as before.
As I don’t have details of the further implications of the above modification with the above setting, I’d advise some caution here without seeing an official comment from the KNIME team. It’s possible this is mentioned in some release notes but I haven’t investigated further. Maybe this is one for @ipazin
?