Link to home
Start Free TrialLog in
Avatar of Testsubbu
Testsubbu

asked on

How to find difference in time between two Date objects

Dear java experts ,
           Can somebody help me find the difference in time inthe form of STRING.
SimpleDateFormat sdf = new SimpleDateFormat("hh:mm a dd-MMM-yyyy");

Date Time1=sdf.parse(request.getParameter(time1).trim());
Date Time2=sdf.parse(request.getParameter(time2).trim());


I really want time 2 - time 1 in minutes and that too in STRING.

any help will be very highly apprecaiatted.
thanks,
testsubbu
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial