Re: Simple date question
| From: | Jeff Harris | Date: | Wed, 30 Jul 2003 21:38:33 +0000 |
| Subject: | Re: Simple date question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-157605@lists.php.net to get a copy of this message | ||
On Jul 30, 2003, "Roy W" claimed that:
|If I have:
|
|$firstdate = "2003-06-28";
|
|then how can I get $firstdate plus 4 days?
|
|Thanks!
It looks like that date may have come from a [mysql] database. If that's
the case, you should be able to add 4 days in your query, by using
DATE_ADD()
check http://www.mysql.com/doc/en/Date_and_time_functions.html
Jeff
-- Registered Linux user #304026.
"lynx -source http://jharris.rallycentral.us/jharris.asc |
gpg --import"
Key fingerprint = 52FC 20BD 025A 8C13 5FC6 68C6 9CF9 46C2 B089 0FED
Responses to this message should conform to RFC 1855.