Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

moment

moment().format('MMMM Do YYYY, h:mm:ss a'); // May 22nd 2020, 6:00:23 pm
moment().format('dddd');                    // Friday
moment().format("MMM Do YY");               // May 22nd 20
moment().format('YYYY [escaped] YYYY');     // 2020 escaped 2020
moment().format();                          // 2020-05-22T18:00:23+05:30
Source by momentjs.com #
 
PREVIOUS NEXT
Tagged: #moment
ADD COMMENT
Topic
Name
2+3 =