Try this:

$six_months_from_now = date("Y-m-d", mktime(0,0,0, date(m)+6, date(1),
date(Y)));
echo "Six Months From Now: $six_months_from_now<P>";

-----Original Message-----
From: its me [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 17, 2002 12:28 AM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] increase date()


i have:
$nowdate=date("Y-m-d");
and i   want to increase it by 6 months,how can i do that??


Rehab M.Shouman

------------------------------------------------------------
------------------------------------------------------------


---------------------------------------------------------------------
Express yourself with a super cool email address from BigMailBox.com.
Hundreds of choices. It's free!
http://www.bigmailbox.com
---------------------------------------------------------------------

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to