• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

What is the week number given by function "week" ?

Community Beginner ,
Jan 05, 2016 Jan 05, 2016

Copy link to clipboard

Copied

Just using function "week" which gives 2 as week number for monday January 4th which is wrong.

According to ISO standard, week number one is the week containing January 4th.

Regards,

Pierre.

Views

363

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jan 05, 2016 Jan 05, 2016

Yes, ColdFusion's week numbering system is different from the ISO date standard. For example, in ColdFusion the week begins on Sunday. Whereas in the ISO standard it begins on Monday.

There is nothing wrong with that. The ISO standard is a convention, and is not mandatory

Votes

Translate

Translate
Community Expert ,
Jan 05, 2016 Jan 05, 2016

Copy link to clipboard

Copied

Yes, ColdFusion's week numbering system is different from the ISO date standard. For example, in ColdFusion the week begins on Sunday. Whereas in the ISO standard it begins on Monday.

There is nothing wrong with that. The ISO standard is a convention, and is not mandatory

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 05, 2016 Jan 05, 2016

Copy link to clipboard

Copied

LATEST

Seeing as 01 JAN and 02 JAN are Friday and Saturday, respectively, wouldn't that be week 1, regardless of ISO standard?  04 JAN is the first Monday, yes, but (by the calendar) is the second week.

V/r,

^_^

UPDATE: Ah, I see.. the ISO standard is counting the first week of the year as the first week that has a Thursday in it.. and uses Monday as the start of the week.  That may be ISO standard, but since different cultures see the start/end of the week in different ways, this cannot be relied upon.  And, as BKBK‌ mentions, isn't really mandatory, anyway.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation