Jump to content

BIRT Developer Center Download


Submitter

File Information

  • Submitted: Oct 14 2015 10:41 AM
  • Last Updated: Oct 14 2015 11:13 AM
  • File Size: 33.4KB
  • Views: 6188
  • Downloads: 31
  • Approved by: JFreeman
  • Approved on: 14 October 2015 - 11:36 AM
  • Summary: Business day and holiday calculator for a range of dates.
  • Content Type: Designs & Code
  • BIRT Version: iHub3

Download Business Day and Holiday Calculator 1.0 (10-14-2015)

- - - - -



Screenshots
This example contains custom JavaScript code that demonstrates how to calculate the number of business days that fall within a range of dates.

The sample function "businessDaysCalculator()" within the report returns an object that contains various values about the given business days.

For example:

Array of holiday dates that fall within the date range:
obj.holidaysInDateRange = Thu Jan 01 2015 00:00:00 GMT-0600 (CST),Mon Jan 19 2015 00:00:00 GMT-0600 (CST)

Total number of business days that fall within the date range:
obj.totalBusinessDays = 12

Total number of days that fall within the date range:
obj.totalDays = 20

Total number of holidays that fall within the date range:
obj.totalHolidays = 2
...

Additional holidays and floating dates can be added/removed within the code or function parameter for added flexibility.

The attached example was created with BIRT Report Designer Professional 4.2.3 (iHub 3.0)

What's New in Version 1.0 (10-14-2015) (See full changelog)

  • Initial Release







  • 997 Total Files
  • 8 Total Categories
  • 153 Total Authors
  • 31706 Total Downloads
  • Joyplot in iHub Latest File
  • Clement Wong Latest Submitter

0 user(s) are online (in the past 1 minutes)

0 members, 0 guests, 0 anonymous users