esferatec The example is the code from Datetime:format. I tried the Datetime:interval() method and I get odds returns. I tried to get the days between 01/01/2023 and today. I got the following number: 21350136
Samir You've found a bug : Internally, the Datetime:interval() method swaps arguments... so the first argument is not the from Datetime but the to Datetime. It will be fixed in next LuaRT. Thank You !