first of all, you must understand that the String class is not meant to compute things with. If you really want to compare dates, you might want to check out the classes
'Date', or, propably even better: 'GregorianCalendar'. By using those, it should be no real problem determining the difference between the two.
Since 'Date' has got a number of deprecated methods, I'd advice you to use GregorianCalendar
or, you could also use this String objects, seperate them in substrings, convert these to integers and use those to calculate the difference, but I think comparing dates is still a better choice than to compare numbers.
stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433
to convert a string to an real number which you will need with your conversions use double num = Double.parseDouble(enteredString);
piers
Junior Poster in Training
68 posts since Jul 2007
Reputation Points: 10
Solved Threads: 3