Home

Published

- 1 min read

php yesterday date

img of php yesterday date

The solution for this is noted below

php yesterday date

Solution

   date("F j, Y", strtotime("-1 days"));
date("m.d.y", strtotime("-1 days"));
date("j, n, Y", strtotime("-1 days"));
date("Ymd", strtotime("-1 days"));
date("j-m-y", strtotime("-1 days"));
date("D M Y", strtotime("-1 days"));
date("Y-m-d", strtotime("-1 days"));

Try other methods by searching on the site. That is if this doesn’t work