function momentToString(currentTime) {
    if(currentTime.includes('+')){
      let x = currentTime.split('+');
      currentTime = x[0] + '.000Z';
    }
    else{
      let x = currentTime.split('-');
      currentTime = currentTime.replace('-' + x[x.length - 1], '.000Z');
    }
    return currentTime;
  }
//turns a string with time zone on the end into a string with .000Z on the end for more functionality with moment package
turns a string with time zone on the end into a string with .000Z on the end for more functionality with moment package
turns a string with time zone on the end into a string with . 000Z on the end for more functionality with moment package
function momentToString(currentTime) {
    if(currentTime.includes('+')){
      let x = currentTime.split('+');
      currentTime = x[0] + '.000Z';
    }
    else{
      let x = currentTime.split('-');
      currentTime = currentTime.replace('-' + x[x.length - 1], '.000Z');
    }
    return currentTime;
  }
function momentToString ( currentTime ) { if ( currentTime . includes ( '+' ) ) { let x = currentTime . split ( '+' ) ; currentTime = x [ 0 ] + '.000Z' ; } else { let x = currentTime . split ( '-' ) ; currentTime = currentTime . replace ( '-' + x [ x . length - 1 ] , '.000Z' ) ; } return currentTime ; }
turns a string with time zone on the end into a string with .000Z on the end for more functionality with moment package
turns a string with time zone on the end into a string with . 000Z on the end for more functionality with moment package