im trying to work this out myself
//Date string
$d1 = $line_card_details["date"];
$old_date = date('d-m-Y',$d1);
$date = $old_date;
//Get day,mount,year use parsing by '-'
$data=explode("-",$date);
//Create stamp, with old day and mounth and today year
$stamp=mktime(0,0,0,$date[1],$date[0],date("Y"));
//And after that you can format date by this data
$date=date('d-m-Y',$stamp);
print $date;
d1 prints like this "2006-09-10"
old_date prints like this "31-12-2005"
its ment to print like this "2007-09-10"
so what am i doing wrong.