Hi All,
I want to calculating value in (Duration = datetime - datetime) this format. W.r.t this formula i am able to get answer in '2 days 39 minutes 33 seconds 957 milliseconds' format but i want same in hh:mm format.
I followed below steps
Name DataType Subtype Length
ProcessStart DateTime
ProcessEnd DateTime
TimeDuration BigInteger
TotalHours Integer
ProcessStart := CREATEDATETIME(010109D,072005T);
ProcessEnd := CREATEDATETIME(300109D,103000T);
TimeDuration := ProcessEnd - ProcessStart;
TotalHours := TimeDuration/3600;
Message('%1',TotalHours);
but facing attached error
Microsoft Dynamics NAV
---------------------------
Overflow under conversion of Microsoft.Dynamics.Nav.Runtime.Decimal18 value 48659.4325 to System.Int32.
---------------------------
OK
---------------------------
any other solution for doing same???
Thanks in advance!!
*This post is locked for comments
I have the same question (0)