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

by
Category:php
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

<?php
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.


0 Comments


Html code work in comment box


Related Post