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

Hello,

I've spent some time trying to get this to work, but have not had much success.

I'm looking for a way to a field equal to the week of the month.

For instance week 1, week 2, week 3, week 4, week 5, and another one to display the date of the first day of that week.

For this purpose the week starts on Monday.

So for April I would get

Week 1 = 4/3/06

Week 2 = 4/10/06

Week 3 = 4/17/06

Week 4 = 4/24/06

Week 5 = (N/A for April)

Thanks

Is this what you're looking for?

http://www.briandunning.com/cf/343

IIUC, you want the dates of all Mondays in a particular month/year.

This will return the date of the first Monday:

Let ( [

firstOfMonth = Date ( yourMonth ; 1 ; yourYear )

] ;

firstOfMonth + Mod ( 2 - DayofWeek ( firstOfMonth ) ; 7 )

)

The second Monday is a week later, so just add 7 to the result, and so on.

The fifth Monday might fall in the next month, so you might want to check if the resulting date's month is equal to the given month.

Could you somehow use the WeekOfYearFiscal function vs. the week of the first monday of that month? I started to work on something but don't have time to finish, I have attached it as a work in progress. Not sure if its on the right track, the records that have a result of 0 or 99 would somehow have to be worked out, I think the other dates are correct but it wouldn't be the first time dates had tripped me up.

WeekOfMonth.zip

  • Author

Thanks.

That file is excatly what I was looking for.

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.