Take a look at the 
DateUtils<http://developer.android.com/reference/android/text/format/DateUtils.html>class.
 It provides various "elapsed time" and time range methods

On Thursday, October 10, 2013 12:21:02 PM UTC-5, abhay_401 wrote:
>
> Hi,
>
> I am having two dates with times for example:
>
>                 String dateStart = "01/14/2012 09:30:55";
>  String dateStop = "01/15/2012 18:25:54";
>
> SimpleDateFormat format = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss");
>   
> Date d1 = null;
> Date d2 = null;
>  
>  d1 = format.parse(dateStart);
>  d2 = format.parse(dateStop);
>
> When I subtract:  d2 - d1, I want to show the ela[sed time in between the 
> above two dates in the format in *HH:MM:SS*: like i want the output 
> something like: 
> *33:05:01. How can I get in that format..? If anybody is having any idea 
> please help me out... *
>
>
>
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to