I am getting date and time which is stored in a String.Below is the date and time which is stored in string.
String userDateTime = "26-Aug-2014 09.00.00 AM";
I have to compare current date and time with the one which is stored in String and if date or time is past date or time or equals to current date and time, it has to perform some logic. Please suggest how can i compare current date and time which is stored in String with the system date and time. I can use java.util.Date but not sure how can i compare with string format.Please suggest.