I want to format the date based on the current browser locale. Like navigator.language
. This works
moment(new Date()).locale(navigator.language).format("llll");
but do I need to use the .locale(navigator.language)
? I want to know if I need that explicitly, or does moment use the current locale by default, so that I would just need
moment(new Date()).format("llll");
Thanks