Hier PHP
date('F j, Y',strtotime("-1 days"));
RedGuy12
date('F j, Y',strtotime("-1 days"));
$yesterday = new DateTime('yesterday');
echo $yesterday->format('Y-m-d');
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"));
echo date("Y-m-d", strtotime("yesterday"));
date("F j, Y", time() - 86400);