Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

moment format date

moment().format('MMMM Do YYYY, h:mm:ss a'); // December 23rd 2021, 11:12:44 pm
moment().format('dddd');                    // Thursday
moment().format("MMM Do YY");               // Dec 23rd 21
moment().format('YYYY [escaped] YYYY');     // 2021 escaped 2021
moment().format();                         
Source by momentjs.com #
 
PREVIOUS NEXT
Tagged: #moment #format #date
ADD COMMENT
Topic
Name
4+1 =