Organizational Research By

Surprising Reserch Topic

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 10, 2015 by DilZVKM
0 votes
4 views



Related Hot Questions

11 Answers

0 votes
NULL
answered Sep 10, 2015 by A6907
0 votes
NULL
answered Sep 10, 2015 by KandiO36bytq
0 votes
NULL
answered Sep 10, 2015 by BobReymond
0 votes
NULL
answered Sep 10, 2015 by Glo30N
0 votes
NULL
answered Sep 10, 2015 by CelesteXgyj
0 votes
NULL
answered Sep 10, 2015 by FraBaker
0 votes
NULL
answered Sep 10, 2015 by KatChiles
0 votes
NULL
answered Sep 10, 2015 by Lor5416
0 votes
NULL
answered Sep 10, 2015 by SungChisholm
0 votes
NULL
answered Sep 10, 2015 by GeraldCherry
0 votes
NULL
answered Sep 10, 2015 by RoseanneH011

...