function formatDate(date) {
  if (!date) {
    return 0
  }
  date = date.replace(getRegExp('-', 'g'), '/');
  var _date = null;
  _date = getDate(date);

  var year = _date.getFullYear();
  var month = _date.getMonth() + 1;

  return year + '-' + (month.toString()[1] ? month : '0' + month);
}

function formatNumber(number) {
  if (number && number !== 0) {
    var _number = number - 0;
    if (_number.toString() === 'NaN') {
      return number
    } else {
      return _number.toFixed(2)
    }
  }
  return ''
}
module.exports = {
  formatDate: formatDate,
  formatNumber: formatNumber
};