I am trying to convert a String into Date... But the return value is wrong.
String startDate = \"2013-07-24\"; Date date = new Date(); try{ DateForm
One issue I see is:
DateFormat formatter = new SimpleDateFormat("yyyy-MM-DD");
should be:
DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
DD represents Day in YEAR. Read this for more information on SimpleDateFormat.
DD