The isDate()
method tests if the provided value is a Date and returns a boolean value.
bapi.helper.isDate(value)
value
The value to test.
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);