Issue - X++ to check Does date range overlap another date range.

Hi,

i've got 2 dates, from date and to date in a table, lets say table.fromDate = 01/01/2018, toDate = 31/03/2018:

and ive got two dates as variables, lets say dateFrom2 = 16/02/2018, dateTo2 = 01/05/2018

these 2 dates overlap, i want to check are they overlapping over x++, how to do it ? two dates as range in table, and provide my own 2 dates as variables to the method to check are they overlapping ? version is AX 2009

Related
Recommended