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 Professional Support for Your Website Problems?

Whether you're facing website issues or struggling with code implementation, our team is here to assist. Hire us to get your website back on track.

Hire Us