Ve si esta funcion te sirve.... Saludos
Código PHP:
$fecha= date("d-m-Y");
if (preg_match("/[0-9]{1,2}\/[0-9]{1,2}\/([0-9][0-9]){1,2}/",$fecha))
list($dia,$mes,$año)=split("/", $fecha);
if (preg_match("/[0-9]{1,2}-[0-9]{1,2}-([0-9][0-9]){1,2}/",$fecha))
list($dia,$mes,$año)=split("-",$fecha);
$nueva = mktime(0,0,0, $mes,$dia,$año) + 40 * 24 * 60 * 60;
$fec_asignada=date("d-m-Y",$nueva);