You can create a DateFormat object with a pattern that matches your string and use that to parse the two date strings into two Date objects, then use compareTo or equals on the two Dates. See if the JavaDoc for those classes is enough to get you going.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi