How to minus ToTime to FromTime in Navision 4.0

jasbirjasbir Member Posts: 55
Hi All,


I want to calculate minutes and Hours after minus ToTime to FromTime in Navision 4.0.


Example:-


From To Minutes Hours
6:00 AM 6:30 AM 30 0:30
7:00 AM 8:15 AM 75 1:15



Please help...

jasbir Singh
Gurgaon

Comments

  • Dave_CintronDave_Cintron Member Posts: 189
    Navision will only give you the seconds (actually 1/1000ths) difference:

    time1 Time
    time2 Time
    timediff Integer

    fromtime := 0630T;
    totime := 0700T;
    timediff := (totime - fromtime)/60000; // translate seconds to minutes

    answer is 30
    Dave Cintron
    Dynamics West
    http://www.dynamicswest.com
Sign In or Register to comment.