I have a problem with time format.Some time I have values in hh:mm:ss and some times in mm:ss format.
My code looks like:
SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss");
String time = "01:48:00"
Date remainedTimeDate = sdf.parse(time);
It works, when I got format hh:mm:ss but when I have time in format mm:ss I got an error like, value can not be parsed. Is it possible to dynamically change date format?