IsDateObject
Determine whether a given value or variable reference is a date or dateTime object.
Note that date strings, such as 2021-01-01
and timespans returned from createTimespan()
are NOT date objects. The former are strings and the
latter are numeric values.
Method Signature
IsDateObject(value=[any])
Arguments
Argument
Type
Required
Description
Default
value
any
true
Value to test for date object-ness
Examples
Check if date is a date OBJECT, not just a date string
<bx:script>
date = IsDateObject( now() );
writeOutput( "Can string be converted to a date/time value : " & date );
</bx:script>
Result: Can string be converted to a date/time value : YES
Related
Last updated
Was this helpful?