Here is the code I am using:
String string = "08/07/2013".replace('/', '-');
Date date = new SimpleDateFormat("yyyy-MM-dd").parse(string);
Why does date return: "Wen Jan 3 00:00:00 EST 14"? It is not at all the date format I told it to use.
Edit: I need this format because a database I am using requires this format.