UNPKG

@lion/localize

Version:

The localization system helps to manage localization data split into locales and automate its loading

14 lines (12 loc) 286 B
import { formatDate } from '../formatDate.js'; import { clean } from './clean.js'; /** * To sanitize a date from IE11 handling * * @param {Date} date * @returns {string} */ export function sanitizedDateTimeFormat(date) { const fDate = formatDate(date); return clean(fDate); }