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
Day of the month is made using lowercase 'd', and you're using it uppercase...
Change it to:
DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
at it will work