$yesterday = date('Y-m-d', mktime(0, 0, 0, date("m") , date("d") - 1, date("Y")))
UPD: (thanks to stamm)
$yesterday = date('Y-m-d', strtotime('- 1 day'));
$yesterday = date('Y-m-d', mktime(0, 0, 0, date("m") , date("d") - 1, date("Y")))
$yesterday = date('Y-m-d', strtotime('- 1 day'));
date('Y-m-d', strtotime('- 1 day'));
ReplyDelete