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 Link to comment https://forums.phpfreaks.com/topic/296800-selection-restrictions/ 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. Link to comment https://forums.phpfreaks.com/topic/296800-selection-restrictions/#findComment-1513827 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.