Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

moment format date

moment().format('MMMM Do YYYY, h:mm:ss a'); // March 26th 2021, 12:25:33 pm
moment().format('dddd');                    // Friday
moment().format("MMM Do YY");               // Mar 26th 21
moment().format('YYYY [escaped] YYYY');     // 2021 escaped 2021
moment().format();                          // 2021-03-26T12:25:33-04:00
Source by momentjs.com #
 
PREVIOUS NEXT
Tagged: #moment #format #date
ADD COMMENT
Topic
Name
3+6 =