"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.defaultDateFormatter = exports.default = void 0;
// Prevents day/month greater than 2 digits and year greater than 4 digits
const standardLengthFormatter = _ref => {
  let {
    day,
    month,
    year
  } = _ref;
  return {
    day: day.length > 2 ? day.substring(0, 2) : day,
    month: month.length > 2 ? month.substring(0, 2) : month,
    year: year.length > 4 ? year.substring(0, 4) : year
  };
};
const defaultDateFormatter = dateObject => standardLengthFormatter(dateObject);
exports.defaultDateFormatter = defaultDateFormatter;
var _default = exports.default = defaultDateFormatter;