Originally posted by nca
I need to have php give me an exact date, such as 2002-06-15.
Any other suggestions?
$yr = "2002";
$mn = "12";
$dy = "1";
$offset = 145;
$newday = strftime("%Y-%m-%d", mktime(0,0,0,$mn,$dy-$offset,$yr));
would give you the date 145 days ago.
HTH,
dalecosp