Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

loop array

moment().format('MMMM Do YYYY, h:mm:ss a'); // December 5th 2021, 7:39:21 pm
moment().format('dddd');                    // Sunday
moment().format("MMM Do YY");               // Dec 5th 21
moment().format('YYYY [escaped] YYYY');     // 2021 escaped 2021
moment().format();                          // 2021-12-05T19:39:21-08:00
Source by momentjs.com #
 
PREVIOUS NEXT
Tagged: #loop #array
ADD COMMENT
Topic
Name
1+1 =