How to get the previous date from a given date in PHP
Just insert below code and you will get the previous date
<?php echo date(“D jS M Y”,strtotime(“-1 days”));?>
Here is output Mon 10th Aug 2020
by Basant | Aug 11, 2020 | PHP | 0 comments
Just insert below code and you will get the previous date
<?php echo date(“D jS M Y”,strtotime(“-1 days”));?>
Here is output Mon 10th Aug 2020