UNPKG

bling-erp-api-with-rate-limit

Version:
9 lines 402 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = (date, includeTime = false) => { const baseTime = `${date.getFullYear()}-${date.getMonth() + 1}-${date.getDate()}`; if (!includeTime) return baseTime; return `${baseTime} ${date.getHours()}:${date.getMinutes()}:${date.getSeconds()}`; }; //# sourceMappingURL=convert-date-to-string.js.map