![]() |
date() + 30 days = xxx
Ok so iv been trying to figure out how to do this little thing:
i have todays date: 22 November 2008 and i want to add 30 days onto it, and end up with another date, which would be 22 December 2008. so like: PHP Code:
|
PHP Code:
|
well, the date is just coming from date() but new_date will be stored in mysql :P
|
|
PHP Code:
|
i was thinking on something else sorry but i posted my way but tanax was faster oh well ;)
|
I created this class to modify the dates using the strtotime function. Use it if you wish!
php Code:
|
looks great, Wildhoney :D
thanks for sharing will probably learn something from it will, look at it some more later.. |
Damns some sweet logic Adam :)
|
| All times are GMT. The time now is 03:02 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0