I would like to know how could I achieve the below scenario. I have a date in String format ("mm/dd/yy HH:MM"):
String createdDate="01/14/15 08:11"
I need to get the time elapsed from the createdDate
. If the time elapsed is greater than 4 hrs I have to perform some operation and if not I have to perform some other.
In short I need to get the difference of the created Date and currentDate/Time in Hrs and Mins.