class method Object.isDate

View source on GitHub →

Object.isDate(object) → Boolean
  • object (Object) – The object to test.

Returns true if object is of type Date; false otherwise.

Examples
Object.isDate(new Date);
//-> true
 Object.isDate("Dec 25, 1995");
//-> false
 Object.isDate(new Date("Dec 25, 1995"));
//-> true