I have Two String Datetime as follows:
String Date1 = \"05-09-2013 10:46:10\" String Date2 = \"06-09-2013 10:46:10\"
I Need to compare thes
Try this,
String pattern = ""; SimpleDateFormat dateFormat = new SimpleDateFormat(pattern); try { Date one = dateFormat.parse(); Date two = dateFormat.parse(); } catch (ParseException e) {}