Calculate the Month Difference Between Min and Max Date Fields from the Dashboard (without scripting)
Updated 02-01-2024
this should get you Day diff.
It assumes a 30-day month and doesn’t account for edge cases, such as leap year, etc.
((FLOOR(max([Date Numeric])/10000) - FLOOR(min([Date Numeric])/10000)) * 365) +
((FLOOR((max([Date Numeric]) - 10000 * FLOOR(max([Date Numeric])/10000))/100) - FLOOR((min([Date Numeric]) - 10000 * FLOOR(min([Date Numeric])/10000))/100)) * 30) +
((max([Date Numeric]) - 10000 * FLOOR(max([Date Numeric])/10000) - 100 * FLOOR((max([Date Numeric]) - 10000 * FLOOR(max([Date Numeric])/10000))/100)) -
(min([Date Numeric]) - 10000 * FLOOR(min([Date Numeric])/10000) - 100 * FLOOR((min([Date Numeric]) - 10000 * FLOOR(min([Date Numeric])/10000))/100)))
Any idea how to deal with those edge cases?