There is a Date-like String data from a csv String data, that is the Date-like String data has a form of dd/mm/yyyy. I want to implement a method which compares two Date-like String data like if I compare two Date objects. How to achieve that in J2ME ?
There is a Date-like String data from a csv String data, that is the
Share
You can compare the Strings by comparing the individual substrings year-first like there:
This works even in MIDP, although I would agree, it is not the solution winning any beauty-contest.