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

First Week of 2010

New Here ,
Dec 15, 2009 Dec 15, 2009

Hi All,

I'm using CFMX 6.1 and facing an issue in getting the currect Week number of week starting 03-Jan-2010.

Coldfusion returns 2 for #Week('03-Jan-2010')#, but I wanted this to be as 1, as it is the first full week of the year.

Is there any way to acheive this with CFMX 6.1?

Many thanks

546
Translate
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

LEGEND , Dec 15, 2009 Dec 15, 2009

Roll your own: http://en.wikipedia.org/wiki/ISO_week_date.

But first check whether someone's already done it and posted to cflib.org.

--

Adam

Translate
LEGEND ,
Dec 15, 2009 Dec 15, 2009

Roll your own: http://en.wikipedia.org/wiki/ISO_week_date.

But first check whether someone's already done it and posted to cflib.org.

--

Adam

Translate
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 ,
Dec 15, 2009 Dec 15, 2009

Algorithm here: http://www.personal.ecu.edu/mccartyr/ISOwdALG.txt

--
Adam

Translate
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
New Here ,
Dec 15, 2009 Dec 15, 2009
LATEST

What a support, Adam.

I found a UDF here: http://cflib.org/udf/ISOWeek

Thanks a million for your help.

Translate
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