Date +30 comparison
| From: | David Stoltz | Date: | Tue, 01 Sep 2009 16:19:07 +0000 |
| Subject: | Date +30 comparison | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-297550@lists.php.net to get a copy of this message | ||
I'm really struggling with dates in PHP. (Yes, I tried reading the
manual)...
Can someone provide code that does this:
Takes current date, assigns it to a variable (let's say $today)
Then adds 30 days to $today variable
Takes a string ($nexteval) like '8/26/2009' and compare it to $today.
The variable $nexteval must be greater than $today (which is today + 30
days) or a message is echoed.
I'm finding this difficult to do, but I'm coming from an ASP background.
Any help appreciated.