Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

date format in moment js

moment().format('MMMM Do YYYY'); // April 14th 2021, 5:38:13 pm
moment().format('dddd');                    // Wednesday
moment().format("MMM Do YY");               // Apr 14th 21
moment().format('YYYY [escaped] YYYY');     // 2021 escaped 2021
moment().format();                          // 2021-04-14T17:38:13+06:00
Source by momentjs.com #
 
PREVIOUS NEXT
Tagged: #date #format #moment #js
ADD COMMENT
Topic
Name
6+8 =