Determines whether a string or Java object can be converted to a date/time value.
isDate(Object)
returns boolean
Name | Type | Required | Default | Description |
---|---|---|---|---|
Object | any | Yes | A string or variable name |
To determine whether a string can be converted to a date/time value.
<cfset Date = CreateDate(2012, 12, 12)>
<cfset result = isDate(Date)>
<cfoutput>#result#</cfoutput>
To determine whether a string can be converted to a date/time value.
<cfset result = isDate("Date")>
<cfoutput>#result#</cfoutput>