function integerToTwoDigitString(x) {
  const str = `${x / 100}`.substr(2);
  return str.length == 1 ? str + '0' : str;
}
The client-side inference part of the date-conversion example.

Based on Python Keras example:
  https://github.com/keras-team/keras/blob/master/examples/addition_rnn.py