RE: [PHP-WIN] adding dates

From: Date: Mon, 21 Jul 2003 17:17:05 +0000
Subject: RE: [PHP-WIN] adding dates
Groups: php.windows 
Request: Send a blank email to php-windows+get-20850@lists.php.net to get a copy of this message
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:isai_nitro@yahoo.com] Sent: Monday, July 21, 2003 12:47 PM To: php-windows@lists.php.net 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

« previous php.windows (#20850) next »