🚀 Welcome to MDriven Learn –  Don’t miss the latest Release Notes.
OCLOperators inDateRange

Tests if a date falls between two dates.

For example:

DateTime.Today.inDateRange( self.AcceptFrom, self.AcceptUntil )

Tests if today is within AcceptFrom and AcceptUntil.


Example

Given the date January 8th, 2026

DateTime.Today.inDateRange(DateTime.Parse('2026-01-2'),DateTime.Parse('2026-01-31'))

This returns True.