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.
IsDateObject(value)
Parameter |
Description |
|---|---|
value |
A value, typically the name of a variable. |
<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
Sign in to your account