Whatever message this page gives is out now! Go check it out!

IsDateObject

Last update:
May 18, 2026

Description

Determines whether a value is a date/time object.
The difference between IsDateObject and IsDate is that isDate returns true for date/time objects as well as date/time strings.

Returns

True, if the value is a ColdFusion date/time object; False if the value is any other type of data, such as an integer, string, or struct. ColdFusion converts the Boolean return value to its string equivalent, "Yes" or "No."

History

  • ColdFusion (2016 release) Update 3: Added the function.

Category

Syntax

IsDateObject(value)

See also

Parameters

Parameter
Description
value
Value of the date object.

Example

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

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page