
08/04/2015, 13:12
|
 | | | Fecha de Ingreso: marzo-2014
Mensajes: 787
Antigüedad: 10 años, 11 meses Puntos: 67 | |
Respuesta: Sumar 1 año a la fecha
Código PHP:
Ver original$ph_venc = isset($_POST['ph']) ? date_add ($_POST['ph'], date_interval_create_from_date_string ("1 year")) : null ;
Así debería poder sumarte 1 año.
Para más info sobre date_add() http://php.net/manual/es/function.date-add.php
Saludos.
__________________ No te preocupes si tu código no funciona bien. Si todo lo hiciera, no tendrías trabajo. |