I have two dates in String format like below –
String startDate = "2014/09/12 00:00"; String endDate = "2014/09/13 00:00";
I want to make sure startDate should be less than endDate. startDate should not be greater than endDate.
How can I compare these two dates and return boolean accordingly?