I am trying to find a method within android of getting the time between the current date and a date set by the user. For example if they picked a date such as 14 june 2012 i would like my application to workout and display a count down such as “13 days remaining”
I currently have a date picker which will take a date from the user and display it, and i have it checking for the current date which it displays at the top of the screen.
I have seen some code on here that shows how do show how much time has past since a date but not sure how to change that to what i need.
Is there any method within android that could allow for this to be done?
This link shows how to do this using Joda, and I would agree with their response that you should use Joda instead of the standard (flawed) java APIs. I have used Joda with android before without any issues..