tracker issue : CF-3126612

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

Poor exception handling in createDate

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Raymond Camden / Raymond Camden (Raymond Camden)

Created: 02/29/2012

Components: Language

Versions: 10.0

Failure Type: Cosmetic Issue

Found In Build/Fixed In Build: Public Beta / 282566

Priority/Frequency: Minor / Some users will encounter

Locale/System: English / Win 2003 Server

Vote Count: 0

A user tried to create a date for one year ago today on February 29, 2012:

<cfset sDate = DateFormat(CreateDate(year(now())-1,month(now()),day(now())), "mm/dd/yyyy") />

While this is definitely a bad date, the error, "MONTH", was vague and didn't convey the fact that it was an invalid date. You can see something similar if you try to use a day of the month of 900 ("DAY_OF_MONTH"). It looks like the exception handler simply needs to notice this and make it more obvious. It would be great if it said a) that the input was invalid and b) showed what was tried, ie 2011,2,29 or 2012,2,900.

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

Watson Bug ID:	3126612

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

Attachments:

Comments: