daysbetweendates

0
hi ,   I have used an expression to calculate days between twodates but it is not showing negative days what should be added to display negative days between dates  my expression is  floor(daysBetween($Instruments/ContractExpiry,$Instruments/Date))     
asked
1 answers
2

According to the documentation it's only possible to get positive numbers: https://docs.mendix.com/refguide/between-date-function-calls/#6-daysbetween

 

However you can compare two dates, if your expiration date is in the past you can make the number negative. 

 

answered