tracker issue : CF-4100122

select a category, or use search below
(searches all categories and all time range)
Title:

[ANeff] ER for: ISO 8601 support in dayOfWeek()

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/Fixed

Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)

Created: 12/15/2015

Components: Language, Functions

Versions: 11.0

Failure Type: Enhancement Request

Found In Build/Fixed In Build: CF11_Final / 2018,0,02,312943

Priority/Frequency: Trivial / Some users will encounter

Locale/System: English / Win All

Vote Count: 0

dayOfWeek() doesn't use the ISO 8601 standard. #3765535 and #3917706 are updating the date/time format functions to support ISO 8601. This ER is to do the same for dayOfWeek().

Example:

<cfscript>
  dateTime = createDate(2016,1,3);//Sunday, January 3, 2016
  writeOutput(dayOfWeek(dateTime, "iso"));
</cfscript>

Expected result: 7 (ISO 8601 week starts on Monday, not Sunday)

Actual result: FunctionArgMismatchException "The function takes 1 parameter."

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	4100122

External Customer Info:
External Company:  
External Customer Name: Aaron Neff
External Customer Email:

Attachments:

Comments: