denovanq Posted June 14, 2015 Share Posted June 14, 2015 I have code where there is two dates dateA and dateB. the dateB is the future date and dateA is current. If dateB is greater then dateA then the selection should not proceed of item A. I have; if $dateB > $dateA { error message: Not available; } even if the the $dateB is less than $dateA the message remain the same Quote Link to comment Share on other sites More sharing options...
Barand Posted June 14, 2015 Share Posted June 14, 2015 What format are your dates? They need to be "yyyy-mm-dd" for successful date comparisons. 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.