Jump to content

comparing dates British style


asgsoft

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.