I want to convert this string to the following date format.
String s = \"2-26-2013\"; Date date = new SimpleDateFormat(\"EEEE, MMMM/dd/yyyy\").parse(s); Sy
Date date = new SimpleDateFormat("MM-dd-yyyy").parse(s);
The argument to SimpleDateFormat defines the format your date it in. The above line matches your format, and works. Your example does not match.