It looks like you're new here. Sign in or register to get started.
Idleness wrote: Thanks and sorry I get an error when I try that. Should it be MyDate = 01/01/2009 Hours = 27 New Date := MyDate + DIV(27/24);
Answers
Date + integer =
//round Down
New Date := Date + DIV(Hours/24);
Round UP
Remainder := Hours MOD(24);
if Remainder <> 0 then
Remainder := 1;
New Date := Date + (Hours DIV 24) + Remainder) ;
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Should it be
MyDate = 01/01/2009
Hours = 27
New Date := MyDate + DIV(27/24);
New Date := MyDate + (27 DIV 24);
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n