Bladephp: Now with 8+ codeigniter, php, and laravel project 8+ php project From $37/Month From Rs. 2499/Month

How to get Yesterday Date in PHP

How to get Yesterday Date in PHP

In this tutorial i will show you how to get yesterday date in PHP means subtract one day. so lets start in code so you are easily understand how to subtract one day. You may also like How to add one year in current date using php and How to Add Months to Date in PHP.

PHP Code

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

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


Html code work in comment box

Related Post