Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

moment

moment.locale();         // en
moment().format('LT');   // 2:24 PM
moment().format('LTS');  // 2:24:26 PM
moment().format('L');    // 08/31/2022
moment().format('l');    // 8/31/2022
moment().format('LL');   // August 31, 2022
moment().format('ll');   // Aug 31, 2022
moment().format('LLL');  // August 31, 2022 2:24 PM
moment().format('lll');  // Aug 31, 2022 2:24 PM
moment().format('LLLL'); // Wednesday, August 31, 2022 2:24 PM
moment().format('llll'); // Wed, Aug 31, 2022 2:24 PM
Source by momentjs.com #
 
PREVIOUS NEXT
Tagged: #moment
ADD COMMENT
Topic
Name
9+7 =