[android-developers] how to convert string to a date
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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home