Software Venture Consulting
ToMarket

FileMaker Pro downloads & Resources
FileMaker Custom Functions
FileMaker Web Viewer Examples
FileMaker Pro & Lasso Consulting
Training
FileMaker Books
FileMaker Articles
FileMaker Error Reference

Free Web Tools
Free FileMaker Tools

Personal Pages
Videos
Adventures
Links

Shopping Cart
Shopping Cart

Search:

Free Newsletter
Signup


Contact


Privacy Policy



FileMaker is a registered trademark of FileMaker, Inc. in the U.S. and other countries.

 FileMaker Pro Custom Functions

List  |  Show Random  |  Upload  |  Add This to Your Site

WorkingDays ( DateStart ; DateEnd ; HolidayList )

Rate this function:  

RatingRatingRatingRatingRating
  Average rating: 3.1  (10 votes)
  Discuss this Custom Function

Daniele Raybaudi, ACI
http://www.aci.it

returns the number of working days between the two dates

Sample Input:
WorkingDays ( "7/7/2010" ; "7/7/2010" ; HolidayList )
WorkingDays ( "7/3/2010" ; "7/4/2010" ; HolidayList )
Sample Output:
1
0


 Then copy & paste into FileMaker Advanced's Edit Custom Function window.

Click here to copy To Clip Manager if you have myFMbutler's Clip Manager installed

Description:

returns the number of working days between the two dates.
( No weekend days nor any day of the HolidayList )

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

This is my Custom Function and I want to edit it

Discuss:

5 most recent comments | Show all 12 comments

yes I do Pro 11 advanced

Chris Coetzee, Cape Town
November 02, 2010 7:53am

So why worry about the name of a variable contained within the CF.
Copy the entire calculation and enter it directly in the space reserved for the calculation of the CF.
Since this function is recursive, it can not be used in a standard calculated field.

Daniele Raybaudi, Rome
November 02, 2010 8:48am

Buon giorno,
Thank you for your reply to my post @ FM forums and "sorry" for the dialog you needed to endure from others. I may be over-thinking this CF and could use more advice.
A) I'm not able to veiw the results of the calculation. Do I create a new field to point to the CF?
B) Is the holiday list to be defined in a value list?
Thanks much,
Bob

Robert Trepanier, Lebanon, NH
November 08, 2010 7:55am

Robert, send me an email at:
raybaudi(at)libero(dot)it.

I'll return to you a working example.

Daniele Raybaudi, Rome
November 08, 2010 8:01am

This function does not appear to evaluate consistently or correctly.

WorkingDays ( "03/01/2010"; "06/11/2010"; "") does not produce a result at all.

If I use date fields instead eg:

WorkingDays ( dateFirst;datelast;"")

a value is returned but it returns different answers for the same pair of dates, usually 2 days different. For examle, if the date fields contain the values 03/01/2010 and 06/11/2010 respectively sometimes it returns 75 days, sometimes 77!

I'm using FMP11 Advanced

Brian Rich, Hamble, UK
February 10, 2011 12:54am

Make a comment about this Custom Function (please try to keep it brief & to the point). Anyone can post:

Your Name:
City/Location:
Comment:
characters left. If you paste in more than 1500 characters, it will be truncated. Discuss the function - advertisements and other useless posts will be deleted.
Answer 6 + 1 =
Search for Custom Functions:

Custom Functions Widget
Download the Custom Function Dashboard Widget for OS X
Keep all the latest Custom Functions right at your fingertips!

Newest Custom Functions:

1. CountWordOccurrences ( text ; searchWord )
  (Tue, Feb 07, 11:15am)
2. indonesian_date(date)
  (Mon, Feb 06, 7:14pm)
3. phpArrayValue ( array ; key ; pos )
  (Fri, Jan 27, 1:49pm)
4. solfm_timeToMinutes (theTime;roundSec)
  (Fri, Jan 20, 6:26am)
5. filterLines(filterField;filterValue;Result)
  (Sat, Jan 14, 2:20pm)
6. getMaxValue ( theList )
  (Thu, Jan 12, 1:06pm)
7. MiddleWordsIncPunct ( text ; startingWord ; numberOfWords )
  (Sat, Jan 07, 9:16am)
8. WindowInfo
  (Fri, Jan 06, 12:39pm)

RSS Feed of Custom Functions