MomentJS - Is a Date



This method will return true or false if the given variable to be checked is a native JavaScript date, that is new Date().

Syntax

moment.isDate(obj);

Example

var isdate = moment.isDate(new Date());

Output

Is Date
momentjs_date_queries.htm
Advertisements