twoToFourDigitYear(twoDigitYear) {
    if (twoDigitYear.length === 2) {
      return parseInt((twoDigitYear > 39 ? '19' : '20') + twoDigitYear, 10);
    }
    if (twoDigitYear.length === 3) {
      return parseInt((twoDigitYear.substr(1, 3) > 39 ? '19' : '20') + twoDigitYear.substr(1, 3), 10);
    }
    return twoDigitYear;
  }
/**
   * Convert the two digit year year to the correct four digit year.
   * @param  {number} twoDigitYear The two digit year.
   * @returns {number} Converted 3 digit year.
   */
Convert the two digit year year to the correct four digit year.
@param  {number} twoDigitYear The two digit year.
@returns {number} Converted 3 digit year.
Convert the two digit year year to the correct four digit year . @param { number } twoDigitYear The two digit year . @returns { number } Converted 3 digit year .
twoToFourDigitYear(twoDigitYear) {
    if (twoDigitYear.length === 2) {
      return parseInt((twoDigitYear > 39 ? '19' : '20') + twoDigitYear, 10);
    }
    if (twoDigitYear.length === 3) {
      return parseInt((twoDigitYear.substr(1, 3) > 39 ? '19' : '20') + twoDigitYear.substr(1, 3), 10);
    }
    return twoDigitYear;
  }
twoToFourDigitYear ( twoDigitYear ) { if ( twoDigitYear . length === 2 ) { return parseInt ( ( twoDigitYear > 39 ? '19' : '20' ) + twoDigitYear , 10 ) ; } if ( twoDigitYear . length === 3 ) { return parseInt ( ( twoDigitYear . substr ( 1 , 3 ) > 39 ? '19' : '20' ) + twoDigitYear . substr ( 1 , 3 ) , 10 ) ; } return twoDigitYear ; }
Convert the two digit year year to the correct four digit year.
Convert the two digit year year to the correct four digit year .