Weedpacket;11014607 wrote:Actually, probably not. "06", say, doesn't look like much of anything that strtotime can work with (should "06" plus forty-five days be "20" or "21"? It depends on the month. That of course is assuming that "06" is a day and not an hour, minute, second, or a reference to June or 2006).
If you want strtotime to count 45 days from the current time then strtotime('+45 days') would be sufficient.
Thanks for the reply, Weedpacket.
I do want to count 45 days (or X amout of days entered within a form) ahead of a certain date. Not necessarily todays date. Even count back from future dates.
The main purpose behind this script is : at work, I find i'm constantly looking at a calendar and counting days for customers. I would like to just enter in a certain date.. let's say for example their account will be eligible for a special offer on January 15, 2013. I can do an over-ride 45 days BEFORE this date to make them eligible December 1. Instead of looking at the calendar and counting days, I would like to just input the date into the calendar and click so it'll show me X amount of days from X date or even add days to a certain date.
I know i'm going to have to re-work how i'm adding the days. I get the feeling that this SHOULD be a simple process but i'm overcomplicating things.
Again I want to re-iterate that I haven't coded in years lol. Things are slowly but surely coming back to me but it's taking longer than I would have liked. 5 years ago I could have had the code I wanted to use mapped out in my head before I got home from work and slapped in into gphpEdit and been done!