The isDate() method tests if the provided value is a Date and returns a boolean value.

Syntax

bapi.helper.isDate(value)

Parameters

value

The value to test.

Example

var now = new Date();
bapi.helper.isDate(now);//returns true

//following return false
bapi.helper.isDate("Test Value.");
bapi.helper.isDate("false");
bapi.helper.isDate(125);