Status/Resolution/Reason: To Fix//
Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)
Created: 12/22/2015
Components: Language
Versions: 11.0
Failure Type: Enhancement Request
Found In Build/Fixed In Build: CF11_Final /
Priority/Frequency: Trivial / Unknown
Locale/System: English / Win All
Vote Count: 0
The dateTimeFormat() doc links to the SimpleDateFormat doc for the complete list of masks.
Issue #1: dateTimeFormat() supports all of SimpleDateFormat's masks except "u". It should also support "u".
Example:
{code:java}
<cfscript>
dateTime = createDate(2016,1,3);//Sunday, January 3, 2016
writeOutput(dateTimeFormat(dateTime, "u"));
</cfscript>
{code}
Actual output: u
Expected output: 7 (well, actually I'd expect 1 for en_US, but see Issue #2 below)
Issue #2: The "u" mask's description is: "Day number of week (1 = Monday, ..., 7 = Sunday)". Suggestion: Also add another mask ("uu"?) that returns (1 = Sunday, ..., 7 = Saturday).
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4102597
External Customer Info:
External Company:
External Customer Name: Aaron Neff
External Customer Email:
Attachments:
Comments: