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.

Calculating next date of Service

Featured Replies

Calculate Repeating Service Dates

I'm sure I'm just missing a small piece. I need to calculate the next date of service based on the frequency code. So if the code is AN (for annual) I need the calculation to be the date plus a year BUT I always need it to be the same day of the week. For example today is Thursday April 9th, the second Thursday of the month of April. I need the next service to be scheduled for the second Thursday of April in a year. The second thursday of April in 2010 is April 8, 2010.

I need this to work for Monthly, quarterly etc. So always the same day of the week of the month. I know how to get Day of Week.

any help is greatly appreciated!

Caroline

Look at the custom function DateByDayOccur ( yearNum ; monthNum ; dayOfWeekNum ; dayOccurance ) on Brian Dunning's Custom function web site.

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.