PHP Snippet – Get Yesterdays date
This is a simple function that returns yesterdays date. Simple but handy.
function yesterday()
{
$yesterday = date("Y:m:d",mktime(0,0,0,date("m") ,date("d")-1,date("Y")));
return $yesterday;
}
| Comment (RSS) | Trackback
Leon Wilson spends most of his time designing and developing flash sites, and wishes he was better at high end 3D.