PdcApplication.NoOfWorkingDays: Difference between revisions
Jump to navigation
Jump to search
Created page with "== Declaration == NoOfWorkingDays(Date1, Date2) as integer == Description == Returns the number of working days between two dates. == Notes == This function calculates the ..." |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== Declaration == | == Declaration == | ||
NoOfWorkingDays( | NoOfWorkingDays(StartDate, EndDate as Date) as integer | ||
== Description == | == Description == | ||
Line 6: | Line 6: | ||
== Notes == | == Notes == | ||
This function calculates the number of working days between two dates. The calculation is based on the table of non working days. | This function calculates the number of working days between two dates. The calculation is based on the table of non working days in PdC. | ||
== Code example == | == Code example == | ||
Line 16: | Line 16: | ||
== Availability == | == Availability == | ||
Available since | Available since 2011 (from version 4.1) |
Latest revision as of 14:55, 22 April 2014
Declaration
NoOfWorkingDays(StartDate, EndDate as Date) as integer
Description
Returns the number of working days between two dates.
Notes
This function calculates the number of working days between two dates. The calculation is based on the table of non working days in PdC.
Code example
This example returns the number of working days of the following seven days from now. Normally the answer is 5.
msgbox pdc.NoOfWorkingDays(Date(), Date() + 7)
Availability
Available since 2011 (from version 4.1)