How to get the difference between two dates

Hello, use this today() - mkdate(31,01,2016) ;

Hi,

Iam new to AX, I have requirement that CustTable’s Modified date should be compared with today’s date. I tried with many solutions but getting an error. Please help me ASAP