RE: [PHP-DB] Date Calculation

From: Date: Tue, 13 Nov 2001 05:50:22 +0000
Subject: RE: [PHP-DB] Date Calculation
Groups: php.db 
Request: Send a blank email to php-db+get-14269@lists.php.net to get a copy of this message
in PHP, coming out in yyy-mm-dd date("Y-m-d", mktime(0,0,0, date("m"), date("d")+14, date("Y")); untested, so please test it - this will ignore hours, minutes, seconds (the leading 3 0's) and make a timestamp using mktime for this month, this day + 14, this year, then return it formatted as yyy-mm-dd HTH Beau // -----Original Message----- // From: Ben S. [mailto:sehara@hotmail.com] // Sent: Tuesday, 13 November 2001 1:49 PM // To: php-db@lists.php.net // Subject: [PHP-DB] Date Calculation // // // How do you get the date that is 14 days from today's date? // I can get that date with mysql monitor but PHP. I am using // PHP4 and MySQL. I // have tried many things but nothing works. // Does anyone give me a help? // // Thank you. // Ben // // // // -- // PHP Database Mailing List (http://www.php.net/) // To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net // For additional commands, e-mail: php-db-help@lists.php.net // To contact the list administrators, e-mail: // php-list-admin@lists.php.net //

« previous php.db (#14269) next »