hey i want to know how to compare dates that a user has typed in, a user types the date in the text fields provided and I want to be able to compare them. I dont want any output from the method, which i have currently i want it to just compare dates like "compareTo" does for String. Thanks.
prepare to undergo ****.
you have to use the more urbane Calendar object:
methods you'll probably need:
set(int year, int month, int date)
/*you do know how to convert String to primitive int, right?*/
get(Calendar.SATURDAY);//or whatever day/month in all caps
you make 2 instances of the Calendar object, set their fields with the set() method, then convert them to longs, subtract, then convert the long back to a calendar object, with all the fancy division implied.
of course, i could be completely off base, and you probably could just do it with the wonderful Date object and compile it with a deprecated sdk, or there could be a method i missed, or you could probably google one up, but there ya go.
oh, also check out http://www.experts-exchange.com/Prog..._20870994.html
then why dont you just convert the date to a string then use the comparTo() method?
A kram a day keeps the doctor......guessing
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center