lion/packages/localize/src/date/sanitizedDateTimeFormat.js

13 lines
282 B
JavaScript

import { formatDate } from './formatDate.js';
import { clean } from './clean.js';
/**
* To sanitize a date from IE11 handling
*
* @param date
* @returns {string|XML}
*/
export function sanitizedDateTimeFormat(date) {
const fDate = formatDate(date);
return clean(fDate);
}