PHP Classes

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 (13 years ago) RSS 2.0 feedNot enough user ratingsTotal: 1,687 All time: 2,297 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 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
Name: Si Cranmer <contact>
Classes: 1 package by
Country: United Kingdom United Kingdom
Age: 50
All time rank: 167172 in United Kingdom United Kingdom
Week rank: 776 Up29 in United Kingdom 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  
This week:0
All time:2,297
This week:794Up
User Comments (1)
Thanks for uploading this function.
10 years ago (chip)