Copy link to clipboard
Copied
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
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Algorithm here: http://www.personal.ecu.edu/mccartyr/ISOwdALG.txt
--
Adam
Copy link to clipboard
Copied
What a support, Adam.
I found a UDF here: http://cflib.org/udf/ISOWeek
Thanks a million for your help.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more