We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
Your help has saved me hundreds of hours of internet surfing.
fblack61
Ray Paseur
The correct answer here is the first comment from Thomas. It's an anti-practice to write your own date/time arithmetic, especially because it will often be wrong in months that do not have 30 days, in leap years, or across daylight savings time. Instead use the built-in PHP functionality.
You can get better answers here at E-E if you search the articles first, and if you leave your questions open a bit longer. I would recommend leaving your questions open for at least 24 hours.
I do not recommend using the accepted solution in a deployed application.
BR
ASKER
Thank you Ray Paseur
You are right
Thank you very much
Open in new window