How do I manipulate a date variable to a specific date array?
| From: | Donpro | Date: | Tue, 12 Aug 2003 16:20:31 +0000 |
| Subject: | How do I manipulate a date variable to a specific date array? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-159292@lists.php.net to get a copy of this message | ||
Hi,
I use the getdate() function to return today's date in an array. I do this
as I need to separate the day/month/year as to display them in a drop down
combo box in my form. I would like to manipulate my array as such.
1) Find the next Monday (if not already Monday); set the array to this date
2) Add 4 weeks to the above Monday and set another array to this date
any ideas?
Thanks,
Don
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.507 / Virus Database: 304 - Release Date: 8/4/2003