function isDate(val) {
  return toString.call(val) === '[object Date]';
}
Determine if a value is a Date

@param {Object} val The value to test
@returns {boolean} True if value is a Date, otherwise false