PHP date difference extremly hard to accomplish -


i have dates subtracting days current date , time.

let suppose current date may 1, 2011

after subtracting 30 days

april 1, 2011

how accomplish in php? please help

$unixtime = strtotime("may 1, 2011 -30 days"); $human_readable = date('f j, y', $unixtime); 

Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -