import i18nNextInstance from '../../../../shared-ui/locales_legacy' ; export const dateTimeFormat = ( date , includeTime = true ) => new Intl . DateTimeFormat ( i18nNextInstance . language , { year : 'numeric' , month : 'numeric' , day : 'numeric' , ... ( includeTime && { hour : 'numeric' , minute : 'numeric' } ) , hour12 : false , } ) . format ( date ) ;