-
Get past date or convert different date format with php
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(’12/15/2008′));
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(’12/15/2008′));