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.

Featured Replies

Okay, our sales reps run in a weekly cycle starting on Wednesday.  I need, regardless what date it is, to find all records from the Wednesday before through the next Tuesday.   Oh, and only the current year except if the search is done early in January, it needs to go into prior year.  I tried many things but still fail in the find but it fails. 

Added - I think it good to have a day of week in Admin in case this changes to different day.  Then the find would use that day of week to jump back and ahead and find the records we need.  Week of year seems to fail for me. I searched but still need help.

Edited by rob

You may achieve that using get(CurrentDate) and DayOfWeek( get (CurrentDate))

 

the formula would be something like this:

get(CurrentDate)-If ( DayOfWeek( get (CurrentDate))≥ 4;DayOfWeek( get (CurrentDate))-4;DayOfWeek( get (CurrentDate))-4+7 )

 

This would return the date of the last Wednesday.

 

 

 

You can calculate the date of last Wednesday using =

Get ( CurrentDate ) - Mod ( Get ( CurrentDate ) - 3 ; 7 )

Note that this will return the current date when the calculation is performed on a Wednesday.

 

I am afraid I did not get this part:

17 minutes ago, rob said:

Oh, and only the current year except if the search is done early in January, it needs to go into prior year.  I

The calculation looks only at the weekly cycle and ignores year boundaries.

 

19 minutes ago, rob said:

I think it good to have a day of week in Admin in case this changes to different day.

If you like,  you can use =

Get ( CurrentDate ) - Mod ( Get ( CurrentDate ) - Weekday + 1 ; 7 )

where Weekday is a number between 1 (Sunday) and 7 (Saturday).

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.