“Php fecha strtotime agregue días” Código de respuesta

Php fecha strtotime agregue días

// add 1 day to the date above
$n = date('Y-m-d', strtotime( $d . " +1 days"));

// add 1 month to the date above
$n = date('Y-m-d', strtotime( $d . " +1 month"));

// add 1 year to the date above
$n = date('Y-m-d', strtotime( $d . " +1 year"));

// subtract 1 day to the date above
$n = date('Y-m-d', strtotime( $d . " -1 days"));

// subtract 1 month to the date above
$n = date('Y-m-d', strtotime( $d . " -1 month"));

// subtract 1 year to the date above
$n = date('Y-m-d', strtotime( $d . " -1 year"));
Strange Shrew

PHP Strtotime más 1 día

$NewDate = date('Y-m-d', strtotime('+7 days'));
Matteoweb

Respuestas similares a “Php fecha strtotime agregue días”

Preguntas similares a “Php fecha strtotime agregue días”

Más respuestas relacionadas con “Php fecha strtotime agregue días” en PHP

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código