docs: function parseDate(date) {
    if (isDateObject(date)) { // 1
      return date;
    } else if (isValidTimeStamp(date)) { // 2
      return new Date(date);
    } else if (typeof date === 'string' && /^[0-9]{4}([-\.\/][0-9]{2}){2}$/.test(date)) { // 3
      date = date.split(/[-\.\/]/);
  
      return new Date(date[0], date[1] - 1, date[2]);
    }
    
    return; // ??
  }