🚀 Welcome to MDriven Learn –  MDriven is now on Discord!  Don’t miss the latest Release Notes.
OCLOperators inDateRange
This page was created by Lars.olofsson on 2021-05-19. Last edited by 62.169.16.147 on 2026-09-12.

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[edit source]

Given Date January 8th 2026

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

This returns True.