Page 1 of 1

Help me with dates please!!!

Posted: Mon Apr 19, 2004 5:12 am
by b4m
I need to subtract a number of days from a specific day.

i.e from Mon 04/19/1996 i need to subtract 8 days

Can anyone please help me do so?

Posted: Mon Apr 19, 2004 5:31 am
by JayBird

Code: Select all

//Create a timestamp for 04/19/1996 using mktime and store in $date

//then simply do the following
echo date("d/m/Y", strtotime("-8 days", $date));
Mark

Thank U

Posted: Tue Apr 20, 2004 4:03 am
by b4m
Thanks for help