isDate

Modified on Mon, 21 Aug 2023

Description

Use this function to check if a value is classified as a Date object.

Syntax

isDate(value)

Returns

Return ValueDescription
True/FalseReturns true if the given value is classified as a Date object and false otherwise.

Sample

ExampleResultDescription
isDate('2022-01-01')trueReturns true if the given value is classified as a Date object, in this case, it returns true because '2022-01-01' is a Date object.

To view all the Language functions, click here.