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? Link to comment https://forums.phpfreaks.com/topic/202189-comparing-dates-british-style/ 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 Link to comment https://forums.phpfreaks.com/topic/202189-comparing-dates-british-style/#findComment-1060229 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.