“Data PHP Strtotime Dodaj dni” Kod odpowiedzi

Data PHP Strtotime Dodaj dni

// 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 plus 1 dzień

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

Odpowiedzi podobne do “Data PHP Strtotime Dodaj dni”

Pytania podobne do “Data PHP Strtotime Dodaj dni”

Więcej pokrewnych odpowiedzi na “Data PHP Strtotime Dodaj dni” w PHP

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu