You can split it up using split() or explode(), then change it from there.
$dateValues = explode("-",$data["Date"]); // Split into an array
$month1 = $dateValues[1]; // Second value in this array (1)
$dateValues = explode("-",$txtMonth);
$month2 = $dateValues[1];
$month = (int)($month1+$month2);
$newDate = $dateValues[0]."-".$month."-".$dateValues[2]; // All the date parts put back together. Month is the only change.
Hope this helps.