Hello, please helpme.
In my database I have a string field with format HH:mm:ss and I need to change to a time field with format HH:mm:ss, that this field is displayed with the time format and that when exporting to a file excel keep the format.
I appreciate your help in advance.
You could just use the (old) SimpleDateFormat for that:
This should return a new java.util.Date with the parsed time but the 1.1.1970 (so the day/month/year are quite useless for your purpose).
Otherwise you could also use the "newer" Java LocalTime object... e.g. https://www.mkyong.com/java8/java-8-how-to-convert-string-to-localdate/
hth + regards