Jump 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.

Filter Weekends from Date Calculation

Featured Replies

I have a database to track work requests. In the database, I have a calculation field named

cool.gif

Hi 'Nambesal',

You can do this but it requires a calc that will count the number of weeks between "Today" and "DateRequestEntered". The calc will also need to adjust for 'extra' weekend days. You will need to make the calc with a mix of 'dayofweek' and 'dayofyear' functions.

For example:

if dayofyear(today) = 200

if dayofyear(requestday) = 180

then total days = 20

20 divided by 7 = 2 weeks (4 weekend days)

with 6 extra days

if dayofweek(today) = 2 (monday)

then day 2 minus 6 'extra' days equals -4 or wednesday of the previous week

-- another words a negative result here means you spanned another weekend (2 weekend days)

So...

4 weekend days plus 2 weekend days equals 6 weekend days total

So...

total days = 20 minus 6 weekend days equals 14 'work days'

Let me know if you have trouble creating the calculation. I can create it for you and send you a sample file. Let me know.

Oh, by the way... I would recommend staying AWAY from the "Today" function. I recommend utilizing the "Status(CurrentDate)" function instead. It will make your system run smoother, faster, and more efficiently.

Hope this helps!!!

Bob Kundinger

cool.gif

  • Author

Bob,

Thanks for the insight. I was able to get the calculation working.

-NambeSal

Create an account or sign in to comment

Important Information

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

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.