lib/query.js
function isValidDate(date) {
  if (moment.isMoment(date)) {
    return date.isValid();
  } else {
    return moment(date).isValid();
  }
}
function isValidDate(date) {
  if (moment.isMoment(date)) {
    return date.isValid();
  } else {
    return moment(date).isValid();
  }
}
function isValidDate ( date ) { if ( moment . isMoment ( date ) ) { return date . isValid ( ) ; } else { return moment ( date ) . isValid ( ) ; } }
Validates a date

@param date
@returns {boolean}
Validates a date