Highlighted

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

Community Beginner ,
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.

Adobe Community Professional
Correct answer by BKBK | Adobe Community Professional

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

Views

216

Likes

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

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

Community Beginner ,
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.

Adobe Community Professional
Correct answer by BKBK | Adobe Community Professional

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

Views

217

Likes

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
Jan 05, 2016 0
Adobe Community Professional ,
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

Likes

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
Reply
Loading...
Jan 05, 2016 0
LEGEND ,
Jan 05, 2016

Copy link to clipboard

Copied

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.

Likes

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
Reply
Loading...
Jan 05, 2016 0