Jump to content
Server Maintenance This Week. ×

Date Range From Week


ShawnR

This topic is 5993 days old. Please don't post here. Open a new topic instead.

Recommended Posts

This works well. You just have to check if in Jan and Dec that it does not wrap into the next or previous year.

Let ( [

Start_Date = Report_Week * 7 + Date ( 1 ; 1 ; Report_Year ) - DayOfWeek ( Date ( 1 ; 1 ; Report_Year ) ) - 6 ;

End_Date = Report_Week * 7 + Date ( 1 ; 1 ; Report_Year ) - DayOfWeek ( Date ( 1 ; 1 ; Report_Year ) )

] ;

Case ( Year ( Start_Date ) < Report_Year ; Date ( 1 ; 1 ; Report_Year ) ; Start_Date ) & " - " &

Case ( Year ( End_Date ) > Report_Year ; Date ( 12 ; 31 ; Report_Year ) ; End_Date )

)

Thank you very much!

Shawn

Link to comment
Share on other sites

Well, it depends. I think we don't count the weeks the same way on both banks of the Atlantic River :

Anyway, since Santa Claus comes on the 24th of december there and on the 5th here... what can you expect ?

More seriously, ISO 8601 states that : (translated by me)

First week of a year (week number 1) is the one that contains the first Thursday of the year.

In other words, it's the week the 4th of January belongs to.

The last week of the year is the one directly followed by the first one (I love that !)

FileMaker's WeekOfYear is not ISO compliant. It returns the american standard, where week number 1 is the one where the 1st of January is.

The Continental Europe standard (I don't know for the big island in the middle) states that the first week which is fully in January is week number 1, but I'm not 100% sure of this one.

Note also that our weeks start on Monday, because we like to have weekends at week ends : (we also like to play "football" with feet : )

HTH

Edited by Guest
Link to comment
Share on other sites

This topic is 5993 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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