I need help to calculate number of days between two dates and just only
ordinary working day should take cares.
Say I have "Posting Date" and "Requested Receipt Date". I want to know how many days it's between them and no holiday involve.
I know u can use (DiffReq := "Posting Date" - "Requested Receipt Date") but it don't care if there is holiday between;
Is there any function in Navision who support the calculation and which codeunit?
0
Comments
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Setup the Base Calender
using th following to see if it iw a working date or not
Where
CalendarMgt is Codeunit Calendar Management
WorkingDay is boolean
DateStart & DateEnd are your dates
Description is Text 100
ServMgtSetup is Record Service Mgt. Setup
Hope this helps
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
[Topic moved from Navision forum to Navision Tips & Tricks forum]
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!