You can use this small function:
$s_date && $date < $e_date)
print "Date is between start and end";
else
print "Date is outside start and end";
?>
Another way
function isDateBetween($dt_start, $dt_check, $dt_end){
if(strtotime($dt_check) > strtotime($dt_start) && strtotime($dt_check) < strtotime($dt_end))
return true;
return false;
}
isDateBetween("2004-01-01", "2004-01-02", "2004-01-03")