UNPKG

@redocly/theme

Version:

Shared UI components lib

12 lines 437 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.formatDateWithoutTimeZone = formatDateWithoutTimeZone; function formatDateWithoutTimeZone(date) { if (!date) return date; return `${date.getFullYear()}-${padZero(date.getMonth() + 1)}-${padZero(date.getDate())}`; } function padZero(num) { return num < 10 ? '0' + num : num; } //# sourceMappingURL=format-date-without-timezone.js.map