I've two following dates
String d1 = "Fri May 11 01:48:50 +0000 2015";
String d2 = "Thu May 10 20:49:20 +0000 2015";
long result = 0;
I want to subtract d2 from d1. But, I don't know how to format d1 and d2(SimpleDateFormat or something else) for subtraction. Could someone help me?