RE: Expiry Date ($date function)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



mktime can do this...have a look at the docs...example in there

bastien

From: "Ron Piggott" <ron.php@xxxxxxxxxxxxxxxxxx>
To: "PHP DB" <php-db@xxxxxxxxxxxxx>
Subject:  Expiry Date ($date function)
Date: Wed, 2 Mar 2005 04:41:04 -0500

I figured out that the syntax below creates the date in the way it may be
stored in a mySQL table:

$todays_date=DATE('Y-m-d');

Is there any way to add 21 days to this as an expiry date?  For example if
the date was March 20th 2005 21 days would be in April --- is there any way
of dealing with this?

Ron

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


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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux