Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

moment now

moment.locale();         // en
moment().time();   // 3:04 PM
moment().format('LTS');  // 3:04:12 PM
moment().format('L');    // 06/24/2022
moment().format('l');    // 6/24/2022
moment().format('LL');   // June 24, 2022
moment().format('ll');   // Jun 24, 2022
moment().format('LLL');  // June 24, 2022 3:04 PM
moment().format('lll');  // Jun 24, 2022 3:04 PM
moment().format('LLLL'); // Friday, June 24, 2022 3:04 PM
moment().format('llll'); // Fri, Jun 24, 2022 3:04 PM
Source by momentjs.com #
 
PREVIOUS NEXT
Tagged: #moment
ADD COMMENT
Topic
Name
8+7 =