packageDocumentation module import { DateFormatter } from "@itwin/appui-abstract" ; alpha export class IntlFormatter implements DateFormatter { constructor ( private _intlFormatter ? ) { } public get formatter ( ) : Intl . DateTimeFormat { if ( ! this . _intlFormatter ) { this . _intlFormatter = new Intl . DateTimeFormat ( undefined , { weekday : "short" , year : "numeric" , month : "2-digit" , day : "2-digit" , hour : "numeric" , hour12 : true , minute : "numeric" , second : "numeric" } ) ; } return this . _intlFormatter ; } public formateDate ( day ) { return this . formatter . format ( day ) ; } }