I can't seem to find a function that will tell me if a given date is on or between two other dates.
For instance, $isBetween = DateBetween($theDate,$fromDate,$toDate);
Where theDate is the given date, fromDate is the earliest date and toDate is the latest date.
if toDate = aug-2-2007 and fromDate = aug-1-2007 and toDate= aug-15-2007 the function would return true.
Is there a built in PHP function that does this kind of thing? If not, does anyone know how to go about doing it?
Thanks!🙂