Title:
[ANeff] ER for: week(dateTime, "iso") and year(dateTime, "iso") to return integers
| View in TrackerStatus/Resolution/Reason: Closed/Withdrawn/NotABug
Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)
Created: 03/09/2016
Components: Language
Versions: 2016
Failure Type: Unspecified
Found In Build/Fixed In Build: Beta1_v12 /
Priority/Frequency: Trivial / Unknown
Locale/System: English / Win All
Vote Count: 0
Currently, week(dateTime, "iso") returns a string like 2016-W2. That is the ISO string, however CF could take it a step further. B/c what developers will *actually* want is an integer week and an integer year.
Suggestion:
<cfscript>
dateTime = createDate(2016,1,3);
writeOutput(week(dateTime, "iso") & ' | ' & year(dateTime, "iso"));
</cfscript>
Expected result:
53 | 2015
Currently, year(dateTime, "iso") throws exception: "The function takes 1 parameter." It should return the ISO 8601 year integer. Then, week(dateTime, "iso") can return the ISO 8601 week integer.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4126506
External Customer Info:
External Company:
External Customer Name: Aaron Neff
External Customer Email: adobelabs@itisdesign.com
External Test Config:
Attachments:
Comments: