code: function isDate(thing) {
    return Object.prototype.toString.call(thing) === '[object Date]'
            && !isNaN(thing.getTime());
  }
docs: Is |thing| a valid date?
  @see http://stackoverflow.com/questions/1353684/detecting-an-invalid-date-date-instance-in-javascript