Date and time formatting in browser

Don’t use third-party libraries to manually format dates and time in browser. Correct format depends on user’s locale: russians use to see 11.03.2019, whereas englishmen use to see 3/11/2019.

DateTimeFormat from native Intl API automatically formats date and time according to user’s locale. And, by the way, recently Intl API was extended with RelativeTimeFormat, which allows formatting time like “X minutes ago”.