lional Posted September 5, 2009 Share Posted September 5, 2009 Hi all I have a page where a client fills out bthis for but I do not want them to fill out the form less that three months apart. When they fill out the form I update the client table with the date that the form was filled out. What I want to do is to run a script that would take todays date and then check if the date when they filled in the form is greater than 3 months and if so list their email address. I just need help with the date comparison Any help will be appreciated Quote Link to comment Share on other sites More sharing options...
unknown1 Posted September 5, 2009 Share Posted September 5, 2009 This will take todays date and add 90 days $today=date('m/d/y'); $theFuture=date('Y-m-d',strtotime($today.' + 90 days')); echo $theFuture; Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted September 5, 2009 Share Posted September 5, 2009 If you just want today +90 days you can just do strtotime('+90 days'). No need for a date to add it to. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.