I have date objects formatted like
2011/06/13 17:52:20
and being returned as strings. How would I compare this against another date formatted the same way. I want to determine which one is greater than, less than or equal to, for a conditional statement I am forming.
Without reinventing the wheel (or making several cases) when there might already be a framework for doing this
Thanks!
SimpleDateFormatto parsecompareTo(..)of theDateobjects that are obtainedFor example:
The result is (from the
java.util.Datedocumentation):