How to get previous date from given date in php

[et_pb_section admin_label=”section”]
[et_pb_row admin_label=”row”]
[et_pb_column type=”4_4″][et_pb_text admin_label=”Text”]

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[/et_pb_text][/et_pb_column]
[/et_pb_row]
[/et_pb_section]

Leave a Comment

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

Scroll to Top