diff between datetime period.


i’m storing requestedDate,requestedTime,ApprovalDate,ApprovalTime seperately. Now i want to find the difference between requested datetime and approval datetime .

how can i archieve this.

this i’m developing report in Ax 4.0 so i stored seperately. Advise me.

use datetimeutil::newdatetime() to format your date and time into a Utcdatetime type.Then use datetimeUtil::getdifference() to find difference between the 2 utcdatetime values