OK - you've fallen for one of the most common traps with java date formats:
mm
is minutes
MM
is months
You have parsed months as minutes. Instead, change the pattern to:
Date dob = new SimpleDateFormat("yyyy-MM-dd").parse(...);
Then to output, again make sure you use MM
for months.
String str = new SimpleDateFormat("dd-MM-yyyy").format(dob);