<?php



function cymdToTime($d) {
    $matches = null;
    preg_match('/^(\\d*)?(\\d\\d)(\\d\\d)(\\d\\d)$/', $d, $matches);
    return strtotime( (($matches[1] + 19) * 100 + $matches[2]) . '-' . $matches[3] . '-' . $matches[4]);
}

echo strftime('%B %d, %Y', cymdToTime(960614));
echo strftime('%B %d, %Y', cymdToTime(1090225));