asgsoft Posted May 18, 2010 Share Posted May 18, 2010 Hey everyone! This problem has been baffling me all day today. I am trying to compare dates which are in the British format to see if they are bigger and/or smaller than todays date. This is what I am using: if($start <= date("d/m/Y") && $end >= date("d/m/Y")){ bla; } What this should do is compare and see if todays date falls between the $start and $end Where am I going wrong? Quote Link to comment Share on other sites More sharing options...
JAY6390 Posted May 18, 2010 Share Posted May 18, 2010 convert them to unix timestamps and compare them 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.