Quick way to figure out a past date in PHP. echo date("Y-m-d", strtotime("20 days ago"));echo date("Y-m-d", strtotime("20 days ago")); echo date(’Y-m-d’,strtotime(’12/15/2008’));echo date(‘Y-m-d’,strtotime(’12/15/2008′));
Adam Culp's Tech Blog
Quick way to figure out a past date in PHP. echo date("Y-m-d", strtotime("20 days ago"));echo date("Y-m-d", strtotime("20 days ago")); echo date(’Y-m-d’,strtotime(’12/15/2008’));echo date(‘Y-m-d’,strtotime(’12/15/2008′));