3 ms·
There is – here’s the spec: https://tc39.es/ecma402/#datetimeformat-objects https://tc39.es/ecma402/#datetimeformat-objects
by JimDabell 5y ago
There is – here’s the spec: https://tc39.es/ecma402/#datetimeformat-objects https://tc39.es/ecma402/#datetimeformat-objects
- nicoburns 5y agoAh yes. I can't use that yet due to lack of browser support so I forgot it existed.
- JimDabell 5y agoIt’s pretty well supported now – even Internet Explorer 11 has partial support. But if you need it, there’s a polyfill here: https://formatjs.io/docs/polyfills/intl-datetimeformat/ https://formatjs.io/docs/polyfills/intl-datetimeformat/