0
String tempo1 = "01:30:30";
String tempo2 = "24:25:10";
SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss");
try {
Date date1 = (Date)sdf.parse(tempo1);
Date date2 = (Date)sdf.parse(tempo2);
DateTime dateTime1 = new DateTime(date1);
DateTime dateTime2 = new DateTime(date2);
Guys, how do I add these two strings together that look like this: "25:55:40"?
It’s always returning 1:55:40.
I don’t think it’s duplicate @Diegof because the question refers to the sum of times using Jodatime and not pure Java.
– Marcos Costa Pinto