@fluentui/react-northstar
Version:
A themable React component library.
15 lines (13 loc) • 467 B
JavaScript
exports.__esModule = true;
exports.formatMonthDayYear = void 0;
/**
* Format date to a month-day-year string
* @param date - input date to format
* @param strings - localized strings
*/
var formatMonthDayYear = function formatMonthDayYear(date, strings) {
return strings.months[date.getMonth()] + " " + date.getDate() + ", " + date.getFullYear();
};
exports.formatMonthDayYear = formatMonthDayYear;
//# sourceMappingURL=formatMonthDayYear.js.map
;