tracker issue : CF-3688661

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

Inconsistency between isDate() and isValid("date",)

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Ryan Guill / Ryan Guill (Ryan Guill)

Created: 01/02/2014

Components: Documentation

Versions: 10.0

Failure Type: Unspecified

Found In Build/Fixed In Build: Final /

Priority/Frequency: Normal / All users will encounter

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

Vote Count: 0

Listed in the version 2016.0.0.297996 Issues Fixed doc
Verification notes: verified_fixed on May 18, 2018 using build 2016.0.01.298513
Problem Description:
I am seeing an inconsistency between isDate() and isValid("date",).  Below is a link to a gist that describes the scenario.

Steps to Reproduce:
https://gist.github.com/ryanguill/8220900

Actual Result:
isDate(0) is false,
isValid("date",0) is true

Expected Result:
Quoting the documentation from here: https://learn.adobe.com/wiki/display/coldfusionen/IsValid
"date or time: any date-time value, including dates or times; equivalent to the IsDate function."

I believe that it should state that it is equivalent to the isNumericDate() function.  Can someone confirm that it is using the isNumericDate() behind the scenes?

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

Watson Bug ID:	3688661

External Customer Info:
External Company:  
External Customer Name: Ryan Guill
External Customer Email:  
External Test Config: https://gist.github.com/ryanguill/8220900

Attachments:

Comments:

Fixed the doc at: https://wikidocs.adobe.com/wiki/display/coldfusionen/IsValid
Comment by Frank J.
13771 | May 06, 2014 01:31:35 AM GMT
It's fixed, can be verified at https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-functions/functions-in-k/isvalid.html
Comment by Jacob J.
13772 | September 21, 2015 02:45:38 AM GMT
Hi Adobe, I've verified this is fixed. The IsValid() doc has been updated to clarify that IsValid("date",x) is the equivalent of IsNumericDate(x). Thanks!, -Aaron
Comment by Aaron N.
27869 | May 18, 2018 08:50:21 AM GMT