“PHP 1 Tag zum aktuellen Datum hinzufügen” Code-Antworten

PHP bis heute Tage hinzufügen

$start_date = "2015/03/02";  
$date = strtotime($start_date);
$date = strtotime("+7 day", $date);
echo date('Y/m/d', $date);
Proud Petrel

PHP -Datum Strtotime Fügen Sie Tage hinzufügen

// 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

Fügen Sie 1 Tag PHP DateTime hinzu

$date = new DateTime('2000-01-01');
$date->add(new DateInterval('P1D'));
P1tchBl4ck

PHP 1 Tag zum aktuellen Datum hinzufügen

echo date('j F, Y',strtotime("+1 days"));
Deepak

PHP -Datum Fügen Sie Tage hinzufügen

$date = date('Y-m-d', strtotime("+1 day"));
Trevorpergliamici

Php Strtotime plus 1 Tag

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

Ähnliche Antworten wie “PHP 1 Tag zum aktuellen Datum hinzufügen”

Fragen ähnlich wie “PHP 1 Tag zum aktuellen Datum hinzufügen”

Weitere verwandte Antworten zu “PHP 1 Tag zum aktuellen Datum hinzufügen” auf PHP

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen