IsDate
Determine whether a given value is a date object or a date string.
Method Signature
IsDate(date=[any], locale=[string], timezone=[string])Arguments
Argument
Type
Required
Description
Default
date
any
true
Value to test for date-ness
locale
string
false
Optional ISO locale string to use for parsing the date/time string.
timezone
string
false
Optional timezone to use for parsing the date/time string.
Examples
Simple example
To determine whether a string can be converted to a date/time value.
<bx:set Date = isNumericDate( now() ) >
<bx:output>#Date#</bx:output>Result: Yes
Simple example
To determine whether a string can be converted to a date/time value.
Result: No
Additional Examples
Related
Last updated
Was this helpful?
