Increase current date by 5 days

后端 未结 11 1982
执笔经年
执笔经年 2021-01-02 16:57
$date = date(\'Y-m-d\',current_time(\'timestamp\', 0));

How do I change $date to $date + 5 days?

PHP version is 5

11条回答
  •  执念已碎
    2021-01-02 17:31

    if the date is already exists, you can used this code :

    $tartDate = date("m/d/Y", strtotime("+1 Day", strtotime($Date)));
    

提交回复
热议问题