Hi,
I need to validate a date before assigning it in an expression. Is there a built-in IsDate() function or something similar in O11?
Thanks
Hi @Salvador Alvarez Moya ,
There isn’t a direct built-in method for date validation. Instead, you can use the built-in functions TextToDateTimeValidate() or TextToDateValidate(). Alternatively, you can implement a client-side JavaScript function to handle the validation.
Helpful links:
Hi @Salvador Alvarez Moya If you need to reuse validation often:
Create an action IsValidDate.
Input: DateText (Text)
Logic:
Use TextToDateTime(DateText) inside a Try-Catch.
Return a Boolean True if conversion works, False otherwise.
Hi @Salvador Alvarez Moya ,There isn’t a direct built-in method for date validation. Instead, you can use the built-in functions,
1. Using TextToDate() or TextToDateTime() in a Try-Catch (server action).
2. Or creating a custom function/logic to check if the conversion succeeds.Thanks