PHP   

Add or subtract 1 or more days from current date using php date() function

Add 1 day to current date using php date() function.

date('l, M d', strtotime("+1 day"))

Add 10 days to current date using php date() function.

date('l, M d', strtotime("+10 day"))

Subtract 1 day from current date using php date() function.

date('l, M d', strtotime("-1 day"))

Subtract 2 days from current date using php date() function.

date('l, M d', strtotime("-2 day"))

 

Need a helping hand in fixing your website issues?

If you are facing any problems in implementing these code snippets and tutorials, you can hire us to fix your website issues.

Hire Us