String current = "07:00:00.160"
DateFormat df2 = new SimpleDateFormat("HH:mm:ss.SSS");
DateList.add(df2.parse(current));
Returns [Thu Jan 01 07:00:00 GMT 1970]
I have tried this as well
Date currentdate;
currentdate = df2.parse(current);
df2.format(currentdate);
DateList.add(currentdate);
Returns also
[Thu Jan 01 07:00:00 GMT 1970]
and I have also tried using df2.setLenient(false);