check the constructor property to find out if an object is a Date (contains the word "Date"):
function isDate(myDate) {
return myDate.constructor.toString().indexOf("Date") > -1;
}
Are there any code examples left?
New code examples in category Javascript