How to add days to the current date in PHP? PHP adding days to the current date is very easy and follows this article. I will guide you to add days to the current date using PHP.

How to add days to the current date in PHP?

Add 1 day to the current date:


    $result = date('d.m.Y', strtotime('+1 day', time()));
    echo "Result: ".$result;

Result


    ### Current date: 28.03.2022
    Result: 29.03.2022

Add 2 day to the current date:


    $result = date('d.m.Y', strtotime('+2 day', time()));
    echo "Result: ".$result;

Result


    ### Current date: 28.03.2022
    Result: 30.03.2022

0
2023-06-29
PHP: Hypertext Preprocessor
0
0
2023-06-29
PHP: Hypertext Preprocessor
0
0

Contact Us

If you have any inquiries or feedback, please don't hesitate to reach out to us at [email protected]. We will respond to your request as soon as possible. Thank you very much for your interest!

Country profiles