Categorized under: Quick Tips, php, programming

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'));

RSSSubscribe to my feed now.

About Me

GeekyBoy.com