I have a time in the format HHMM
(1643) and I want it to be formatted to HH:MM AM/PM
(04:43 PM)
How can I achieve this in Java?
I'm doing something similar for the date which is formatted YYYMMDD
(20201013) into MM/DD/YYY
(10/13/2020) with this code:
new java.text.SimpleDateFormat("yyyyMMdd").parse($F{date})