How would I compare the current date against a date I've set to
determine if today is before or after the set date?
I've tried the following, but its not working
Date endTime;
{
endTime = new Date();
endTime.setMonth(11);
endTime.setYear(2009);
}
Date trialTime;
{
trialTime = new Date();
trialTime.getMonth();
trialTime.getYear();
}
boolean test = endTime.before(trialTime);
Any help is greatly appreciated.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---