Calculate the date yesterday (-1 days) or x days ago (-x days) e.g. a week ago (-7 days)
date('Y-mm-dd', strtotime('-1 days'));