In my Spring Boot project, I have this array of objects (List<Object> values
)
["2021-06-13T08:50:04.707Z", 3197691, 1933]
The first element is a String and represents a timestamp with timezone.
I can get the first element like this:
String time = (String) values.get(0);
How can I convert it in date or time format in order to insert in a PostgreSQL table?