Table of contents
  1. Format date with local




Format date with local

    const userLocale = navigator.languages && navigator.languages.length
                       ? navigator.languages[0]
                       : navigator.language;
new Date().toLocaleDateString(userLocale)