Looks like the dateformat should be in lower case
DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
That returns 2013-02-12
Else it returns the day of the year.
Please refer to SimpleDateFormat API page for the entire list of accepted format patterns.