From a date/time object, determines the week number within the year. An integer in the range 1-53; the ordinal of the week, within the year.
week(date)
returns numeric
date.week()
Name | Type | Required | Default | Description | Values | |
---|---|---|---|---|---|---|
date | date | Yes | A date/time object in the range 100 AD-9999 AD. | |||
calendar | string | No | gregorian | CF2016u8+ Indicates whether the week starts on Sunday (gregorian) or Monday (iso) | /Users/garethedwards/development/github/cfdocs/docs/functions/week.md | iso |
dt = createdatetime(2016,1,1,5,30,25);
w = week( dt );
writeoutput( w );