Vivid Lust Posted April 1, 2011 Share Posted April 1, 2011 Hi all, How can I check in PHP if this date has already passed in the following format: 2012-12-12 Quote Link to comment Share on other sites More sharing options...
Adam Posted April 1, 2011 Share Posted April 1, 2011 if ('2012-12-12' < date('Y-m-d')) { echo 'passed'; } else { echo 'not passed'; } More information on the date() function. 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.