within-interval function

Does a date (or interval) fall within an interval?