@axway/axway-cli-oum
Version:
Axway Amplify platform organization and user management CLI
16 lines (14 loc) • 341 B
JavaScript
/**
* Formats a date in the format "m/d/yyyy".
*
* @param {Date|Number} dt - The date to format.
* @returns {String}
*/
function formatDate(dt) {
if (!(dt instanceof Date)) {
dt = new Date(dt);
}
return `${dt.getUTCMonth() + 1}/${dt.getUTCDate()}/${dt.getUTCFullYear()}`;
}
export { formatDate };
//# sourceMappingURL=util.js.map