Organizational Research By

Surprising Reserch Topic

how to get android java date difference in days


android java date difference in days  using -'java,android,date'

I am getting the current date (in format 12/31/1999 i.e. mm/dd/yyyy) as using the below code:

Textview txtViewData;
txtViewDate.setText("Today is " +
        android.text.format.DateFormat.getDateFormat(this).format(new Date()));


and I am having another date in format as: 2010-08-25 (i.e. yyyy/mm/dd) ,

so I want to find the difference between date in number of days, how do I find difference in days?

(In other words, I want to find the difference between CURRENT DATE - yyyy/mm/dd formatted date)
    
asked Sep 9, 2015 by EduardoHarpo
0 votes
12 views



Related Hot Questions



Government Jobs Opening


...