<?php echo date('Y-m-d',time()-60*60*24),"\n";//вчара echo date('Y-m-d',time()-60*60*24*7);//неделю назад ?>