tracker issue : CF-3639695

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

DateTimeFormat does not render "ddd" as a three letter day as the docs say.

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Chris Phillips / Chris Phillips (cf_chris)

Created: 09/25/2013

Components: General Server

Versions: 10.0

Failure Type:

Found In Build/Fixed In Build: Final / 288855

Priority/Frequency: Major / All users will encounter

Locale/System: English / Windows 7 SP1 64-bit

Vote Count: 2

Problem Description:
The docs state: "ddd: Day of the week as a three-letter abbreviation." But, instead it just shows the date as a 3 digit number (e.g. 025, 25 Sep 2013).

Steps to Reproduce:
<p>#DateTimeFormat(now(),"ddd, dd mmm yyyy HH:nn:ss")#</p>

Actual Result:
025, 25 Sep 2013 09:57:54

Expected Result:
Wed, 25 Sep 2013 09:57:54

Any Workarounds:
Don't use the broken function. Use a combination of DateFormat and TimeFormat like we always used to.

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

Watson Bug ID:	3639695

External Customer Info:
External Company:  
External Customer Name: cf_chris
External Customer Email:  
External Test Config: My Hardware and Environment details:

Attachments:

Comments:

Doc page for reference: https://learn.adobe.com/wiki/display/coldfusionen/DateTimeFormat
Comment by External U.
14455 | September 25, 2013 11:30:58 AM GMT
Chris, this is an error in the docs. Use the docs for the underlying Java method instead: http://docs.oracle.com/javase/6/docs/api/java/text/SimpleDateFormat.html You want EEE. -- Adam
Comment by External U.
14456 | September 25, 2013 04:29:40 PM GMT
I dont agree its a documentation issue as that format works in TimeFormat. Your workaround may break in a future release, so I prefer the TimeFormat workaround.
Comment by External U.
14457 | December 09, 2013 06:09:49 PM GMT
The function does not behave as documented.
Vote by External U.
14464 | December 09, 2013 06:10:21 PM GMT
Viny, Do we need to fix the docs?
Comment by Frank J.
14458 | February 03, 2014 12:20:23 AM GMT
Also dddd does not render Day of the week as its full name. Please test new functions before releasing to the public, Thanks
Vote by External U.
14465 | February 07, 2014 07:40:39 AM GMT
Test case at cfsuite\coldfusion\functions\date-time\datetimeformat\bugCF-3639695.cfm (Comment added from ex-user id:vnigam)
Comment by Adobe D.
14459 | March 05, 2014 05:46:32 AM GMT
What exactly was fixed? As far as I know two formatting issues - one with ddd mask and another with dddd mask.
Comment by External U.
14460 | March 05, 2014 08:40:30 AM GMT
Both
Comment by Himavanth R.
14461 | March 05, 2014 08:45:39 AM GMT
Ok thanks
Comment by External U.
14462 | March 05, 2014 08:46:40 AM GMT
Hi Viny, Verified both ddd and dddd are both fixed in the latest build. Thanks!, -Aaron
Comment by External U.
14463 | April 10, 2014 03:12:32 AM GMT