Incrementing dates
| From: | Martin Skjöldebrand | Date: | Sat, 21 Apr 2001 22:13:25 +0000 |
| Subject: | Incrementing dates | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-49708@lists.php.net to get a copy of this message | ||
How do I increment dates past the turn of the month (or year)?
Say I've got a booking of equipment A for the 28 April to 5 May and want to
add each instance to a calendar (mysql table).
Can I increment the variable (format 2001-04-28) holding the date
($txtDate++) somehow so that it doesn't add the 31, 32 and 33 of April?
Martin S.