Parse string to date in android and compare
<p>I have a problem. I have two strings. Every element has date format. I can use <code>Date.parse(string)</code> to parse string to date. Now I have a problem how can I compare this two strings, because I want to check which date is higher. If I have one string <code>6-05-2012</code> and second <code>12-05-2012</code> I want to check which date is higher(in this case will be <code>12-05-2012</code>). How I can do that? Maybe is other way, without parsing to date?</p>
