This has nothing to do with Android.

http://exampledepot.com/egs/java.text/ParseDate.html

On Mon, Feb 7, 2011 at 11:21 PM, Hassy <[email protected]> wrote:
>
> I want to convert string to date and get total days from the current
> date.
>
>        edittext1 date1 = new edittext(this);
>
>        Date d = new Date();
>        String date = (new SimpleDateFormat("yyyy.MM.dd")).format(d);
>
>        final EditText date2 = new EditText(this);
>        edit2.setText(date2);
>
> I want to subtract date1 by date 2 to get total days.
> Please help me..
>
> --
> 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
>



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books

-- 
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

Reply via email to