Just write a little function such as:
// at the top of your script
function makeDate($orig)
{
$outDate = substr($orig,a,b);
$outDate .= substr($orig,c,d);
// and so on until you have the bits you need in the order you need them
return $outDate;
}
//then in your record handling
$myDate = makeDate($db->record["date"]);
please excuse syntax errors - working with another language today - but this should give you the idea