Work Days: Calculate business days between dates

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 1,687 All time: 2,306 This week: 794Up
Version Licenses Categories
clsworkdays 1.0.0Free For Educatio...Time and Date
Description Author
This package is specific mainly for applications used in United Kingdom .

This class can be used to calculate the number of business days between two dates.

It can calculates the number of days excluding business holydays and weekend days that occur between the two given dates.

The class can also check if a given date and is a valid business day.

Currently it considers only United Kingdom holidays but the class can easily be expanded to support other countries.

Innovation Award
PHP Programming Innovation award nominee
October 2006
Number 5


Prize: One copy of DWeb Pro Lifetime License
Calculating the number of days between two dates is a need that applications often have.

For businesses, it is also important to know how many work days separate two dates, as businesses only operate in those days.

This class is able to perform calculations that can consider only business days, thus excluding weekends and holidays.


Manuel Lemos
Picture of Si Cranmer
Name: Si Cranmer <contact>
Classes: 1 package by
Country: United Kingdom
Age: 51
All time rank: 167872 in United Kingdom
Week rank: 630 Up20 in United Kingdom Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Plain text file clsWorkDays.php Class main class
Accessible without login Plain text file holidays_test.php Example Example of Script useage

 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,687
This week:0
All time:2,306
This week:794Up
User Comments (1)
Thanks for uploading this function.
11 years ago (chip)
70%StarStarStarStar
 

For more information send a message to info at phpclasses dot org.