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

Python __call__ special method practical example -

arrays - jQuery - Retrieve values from HTML elements and return their sum -