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

ISO 8601 Week Numbers

ISO 8601 defines the Week as always starting with Monday being Day 1 and finishing with Sunday being Day 7. Therefore, the days of a single ISO Week can be in two different Calendar Years; and, because a Calendar Year has one or two more than 52

CalendarWeekISO8601.zip

I am not getting into the Excel formula, but it seems to me that "the first week which is mostly within the Calendar year" is equivalent to "the first week that contains four or more days of that year".

Hence WeekOfYearFiscal ( date ; 2 ) should be it.

  • 2 weeks later...
  • Author

Thank you comment. It is really that easy in FileMaker! grin.gif

  • Author

Thank you comment. It is really that easy in FileMaker! grin.gif

  • Author

Thank you comment. It is really that easy in FileMaker! grin.gif

  • 10 years later...
  • Newbies

How do you calculate the last day of the iso week (i.e. Sunday)

or display the date range of the week?

ie, week 2 of 2016 needs to display 11th to 17th January 2016?

 

26 minutes ago, Patrick ONeill said:

week 2 of 2016 needs to display 11th to 17th January 2016?

What will be your input to this calculation? Will it be the two numbers, 2 and 2016 - or will it be a date in the given week?

  • Newbies

 

Could it calculated it from the result of this calculation

WeekOfYearFiscal ( date ; 2 )

i am submitting to my clients a weekly time sheet and need to display the ISO week and either the day the week finishes or the date range of that week,

a later development would be to find the records based on the ISO week, Year, and Company.

9 minutes ago, Patrick ONeill said:

Could it calculated it from the result of this calculation

WeekOfYearFiscal ( date ; 2 )

It can be calculated directly from the date itself:

Let ( [
mon = date - DayOfWeek ( date - 1 ) + 1
] ;
mon & ".." & mon + 6
)

 

 

  • Newbies

thanks for the help, worked a treat

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.