How to Subtract one Month in Current date using PHP

In this tutorial i will show you how to subtract one month in current date using PHP. Many project need this type speciality so, let’s start in code so you are easily understand how to subtract one month. You may also like How to Subtract Days to Date in PHP and How to get Yesterday Date in PHP.

PHP Code

echo date('Y/m/d',strtotime("-1 month"));

And if you like this tutorials please share it with your friends via Email or Social Media.

Leave a Reply

Your email address will not be published. Required fields are marked *