IsDate()
Determines whether a string or Java object can be converted to a date/time value.
IsDate( value=any );
Returns: Boolean
| Argument | Description |
|---|---|
|
value
any,
required
|
edit
A string or a variable that contains one. Alias: string |
Examples
edit Date = CreateDate(2018, 07, 04);
result = isDate(Date);
writeOutput(result);
writeDump(isDate(now()));
See also
- Decision logic
- Date and time
- LSIsDate()
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)