Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Multiple Locale Support momentjs

moment.locale();         // en
moment().format('LT');   // 12:54 AM
moment().format('LTS');  // 12:54:21 AM
moment().format('L');    // 05/09/2022
moment().format('l');    // 5/9/2022
moment().format('LL');   // May 9, 2022
moment().format('ll');   // May 9, 2022
moment().format('LLL');  // May 9, 2022 12:54 AM
moment().format('lll');  // May 9, 2022 12:54 AM
moment().format('LLLL'); // Monday, May 9, 2022 12:54 AM
moment().format('llll'); // Mon, May 9, 2022 12:54 AM
Source by momentjs.com #
 
PREVIOUS NEXT
Tagged: #Multiple #Locale #Support #momentjs
ADD COMMENT
Topic
Name
1+3 =