Nov 18, 2021
You will learn how to get previous day date in php. you can see php get yesterday date. Let's see bellow example php get previous date.
In this post, we will learn how to get yesterday date in php. if you have question about how to get previous date in php then i will give simple example with solution.
I will give you very simple example how to yesterday date in PHP.
$newDate = date('Y-m-d', strtotime('-1 days'));
$newDate = date('Y-m-d', strtotime('yesterday'));
i hope it can help...