String selectedDate = \"2012-\" + createdMonth + \"-\" + createdDay; SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\"); try { createdDate = dateFo
The parse method returns a java.util.Date and that is the what the Date implementation of toString() returns.
parse
java.util.Date
Date
toString()