What is the value of toDateTxt? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware
On Fri, Oct 21, 2011 at 12:34 AM, sourabh sahu <[email protected]> wrote: > > SimpleDateFormat curFormater = *new* SimpleDateFormat( > "dd/MM/yyyy",Locale.US); > Date fromDarte= curFormater.parse(toDateTxt.getText().toString()); > > Date toDate = curFormater.parse(toDateTxt.getText().toString()); > if(toDate.before(fromDate)) > { > ... > ...Invalid Date > . > } > > On Thu, Oct 20, 2011 at 9:59 PM, drpickett <[email protected]>wrote: > >> http://developer.android.com/reference/android/text/format/Time.html >> >> >> >> On Oct 20, 4:01 am, sourabh sahu <[email protected]> wrote: >> > I have a editText view on a click of it there is a date picker.When I >> > extract the date in a string format and then convert it into date >> datatype.I >> > am getting it in milliseconds.I want the exact date. >> > >> > I have used SimpleDateFormat with yyyy-MM-DD and Locale.US and parse >> > function.Please suggest some solution to it. >> > >> > Thanks, >> > sourabh >> >> -- >> 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 >> > > -- > 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 > -- 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

