syntax for date math expressions
| From: | ROBERT MCPEAK | Date: | Wed, 03 Apr 2002 17:12:08 +0000 |
| Subject: | syntax for date math expressions | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-91328@lists.php.net to get a copy of this message | ||
What is the php syntax for adding or subtracting dates?
For example, I'd like to do something like this:
2002-04-03 - 2002-04-02 = 1
or
2002-04-03 - 2002-04-02 = 0000-00-01
or
2002-04-03 + 0000-00-01 = 2002-04-03
etc.
Can anybody help this newbie?
Thanks!