NexJ Logo

IsDate()

Checks whether the specified value is a date. This function takes an argument of any type and returns a Boolean value. If the value is a date, the function returns the Boolean value TRUE. If the value is not a date, the function returns the Boolean value FALSE.

Syntax

IsDate(<value>)

Input

value

Boolean, date, integer, number, string

The value to check.

Output

Boolean

Examples

Assume that you have a form in which there is a text question and a date question. The text question has the reference name first_name and was answered Lee. The date question has the reference name date_of_birth and was answered January 1, 2000.

  • The expression IsDate($date_of_birth) returns TRUE.
  • The expression IsDate($first_name) returns FALSE.
  • The expression IsDate("Lee") returns FALSE.