Using Date and mktime function we can get the date
It prints the Yesterdays' date echo date('Y-m-d H:i:s', mktime(date('H'), date('i'), date('s'), date("m") , date("d")-1 , date("Y")));
Tomorows Date
echo mktime(0, 0, 0, date("m") , date("d")+1, date("Y"));
Today
echo date('Y-m-d');
Learn to Develop an iPhone or iPad App in 4 Weeks Learn the latest and greatest markup language in the market with Robin Nixon(HTML & HTML5) Now $29 Only(75% Off)
Using Date and mktime
Tue, 11/25/2008 - 22:20 — adminUsing Date and mktime function we can get the date
It prints the Yesterdays' date
echo date('Y-m-d H:i:s', mktime(date('H'), date('i'), date('s'), date("m") , date("d")-1 , date("Y")));
Tomorows Date
echo mktime(0, 0, 0, date("m") , date("d")+1, date("Y"));
Today
echo date('Y-m-d');