Checks if the given value is a date / time object. The difference between isDateObject and isDate is that the latter returns true for date / time objects as well as date / time strings.

isDateObject(value) → returns boolean

This function requires Adobe ColdFusion 2016.0.3 and up.  Not supported on Lucee, etc.

Argument Reference

value any

A value to test whether it's a date object

Sample code invoking the isDateObject function

    date = IsDateObject(now());
    writeOutput("Can string be converted to a date/time value : " & date);

Expected Result: Can string be converted to a date/time value : YES

Fork me on GitHub