Calculating the number of working days between two given dates
Hi
Eg: Input – Leave Start Date and Leave end date Output – Difference in week days (exclusive of weekend days) Current script to calculate date difference in full:
getValue: function(attribute, workItem, configuration) {
} Appreciate your help. DK |
Be the first one to answer this question!
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.
Comments
I believe you need a localized calendar for this function, which to my knowledge does not exist. For example, Christmas day is a non-working day in most Western countries, but remains a working day in most Asian countries.
Thanks for the comment Donald and indeed it’s a valid point. Leaving the calendar function for further developments, do you have any idea how can we at least ignore the weekend from a day count.
Thanks - DK