Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

duration between dates

Featured Replies

Looking for some help with date calculations.

I have a start date and an end date (defined as dates). I need to calculate the workday duration between the 2 days and also figure out a way to exclude holidays.

I'm guessing it needs to be a custom function, but I don't know how to do that.

thanks

See if these threads help.

http://fmforums.com/forum/showtopic.php?tid/190174

http://fmforums.com/forum/showtopic.php?tid/192750

  • Author

Thanks, I looked at those before I posted. My problem is that I can't figure out how to convert those answers into what I'm trying to do.

I think I understand the Holiday part. I get lost in the difference of using 2 dates and figuring out the workday durations.

I don't think a custom function is really needed here. See:

http://www.fmforums.com/forum/showtopic.php?tid/155958/post/156042/#156042

For holidays, you need to define a relationship to a table of holidays, filtered by by the date range. Then count the holidays in range* and subtract the count from the previous result.

---

(*) make sure you count only holidays that fall on what would otherwise be a workday.

See if this helps. http://filemaker.custhelp.com/cgi-bin/filemaker.cfg/php/enduser/std_adp.php?p_faqid=5281

Yikes, that's an ugly one.

I agree, Michael. Even the one *I* wrote is better than that!

Agreed, but the search engine seems too complicated these days. So I just went with what I had, even though I was still beaten by a minute.

Still rusty, eh?

rust.jpg

Thanks, but it probably will just get me wet for now. I've only used FM 5.5 for the last two years; we really need to upgrade to 9, which may become a reality within the next year. I need some time to play with 7 again, but that probably won't be happening very soon.

Cry for me, won't you?

What are you - Argentina? I am sure you'll manage. Off topic, I always thought FMI should offer a FREE developer version (perhaps crippled in some way to prevent abuse).

No, I'm not quite that big yet, but you could still be sympathetic, ya jerk!

Ooh, that would be excellent! It would definitely beat changing the date before you open any files, not that I've ever done that...

I was referring to your attitude, not your size. Never had much patience for other people's self-pity - too preoccupied with my own. :)

Okay, now I'm addicted. Thanks a lot!

  • Author

Thanks for the help! I'm working my way through it. I think I can get it up and running now.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.