Hi there,
I have some fields in mysql (set as date) and I want to know if there is a php function or mysql function I could use to add on x number of days onto what I have stored. I know I could retrieve the date do a substr of it and then an mktime and then re-assemlbe and re-store but that's quite long winded. Was wondering if there is a faster/easier way to do this.
If the date is 2005-05-31 and I add 2 days onto that I need it to properly output as 2005-06-02.
Thanks for any help. I really appreciate it.
NATE
Got a question? Search G O O G L E first.
I have some fields in mysql (set as date) and I want to know if there is a php function or mysql function I could use to add on x number of days onto what I have stored. I know I could retrieve the date do a substr of it and then an mktime and then re-assemlbe and re-store but that's quite long winded. Was wondering if there is a faster/easier way to do this.
If the date is 2005-05-31 and I add 2 days onto that I need it to properly output as 2005-06-02.
Thanks for any help. I really appreciate it.
NATE

Got a question? Search G O O G L E first.