PHP can format a date in a variety of combinations and I suggest that you
familiarize yourself with these formats if you are going to be doing any
date manipulation -> http://ca.php.net/manual/en/function.date.php
The two lines of code below should do what you want:
$CurrentDate = date("l, F d, Y");
$FutureDate = date("l, F d, Y", strtotime($CurrentDate . "+20 days"));
Cheers,
Dan
-----Original Message-----
From: Isai Arasu [mailto:[EMAIL PROTECTED]
Sent: Monday, July 21, 2003 12:47 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] adding dates
Hi
how do I add dates???
for example,
if the date from database is thursday, feb 12, 1996
and i want to know the date after 20 days from this
date, is this possible in PHP.
or
if todays date is thursday, feb 12, 1996 , how i will
know the date of the day 20 days from today???
Isai.
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php