Calcular fecha de termino a partir de fecha de inicio
Como parametro se tiene que tener la cantidad de meses que se desea sumar a la fehc a de inicio
Copy this code and paste it in your HTML
// CAlCULAR FECHA DE TERMINO
list($panioi,$pmesi,$pdiai) = explode("-",$array_prop[0]['pro_fecha_tentativa']); $fecha_cambiada = mktime(0,0,0,((INT
)$pmesi+(INT
)$array_prop[0]['pro_duracion']),$pdiai,$panioi); $fecha_final_proy = date("Y-m-d", $fecha_cambiada);
Report this snippet
Comments
Subscribe to comments