PHP Classes
elePHPant
Icontem

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    
Last Updated Ratings Unique User Downloads Download Rankings
2006-10-16 (10 years ago) RSS 2.0 feedNot enough user ratingsTotal: 1,680 All time: 2,264 This week: 1,006Up
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 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 United Kingdom
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,680
This week:0
All time:2,264
This week:1,006Up
User Comments (1)