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: 2
There should be an isValid() check to ensure a string is in ISO 8601 format.
Example:
<cfscript>
dateTime = createDate(2016,1,3);
isoDate = dateFormat(dateTime, "iso");
isoTime = timeFormat(dateTime, "iso");
isoDateTime = dateTimeFormat(dateTime, "iso");
writeOutput(isValid("isodate", isoDate));//would return true (per this ER)
writeOutput(isValid("isotime", isoTime));//would return true (per this ER)
writeOutput(isValid("isodatetime", isoDateTime));//would return true (per this ER)
</cfscript>
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4102485
External Customer Info:
External Company:
External Customer Name: Aaron Neff
External Customer Email:
Attachments:
Comments: