I can’t get this time to echo adding three days. What I’m I doing wrong?
<?php $fromDate = date("Y-m-d");
$toDate = date('Y-m-d', strtotime($fromDate . " + 3 day"));
echo $fromDate; ?><br />
<?php echo $$toDate;?>
I can’t get this time to echo adding three days. What I’m I doing wrong?
<?php $fromDate = date("Y-m-d");
$toDate = date('Y-m-d', strtotime($fromDate . " + 3 day"));
echo $fromDate; ?><br />
<?php echo $$toDate;?>
nevermind I see the two $$ after posting hahaha
It’s just literally what you said:
$toDate = date_create("now + 3 days")->format("Y-m-d");
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.