“php data strtotime adicionar dias” Respostas de código

php data strtotime adicionar dias

// 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 mais 1 dia

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

Respostas semelhantes a “php data strtotime adicionar dias”

Perguntas semelhantes a “php data strtotime adicionar dias”

Mais respostas relacionadas para “php data strtotime adicionar dias” em PHP

Procure respostas de código populares por idioma

Procurar outros idiomas de código