Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

moment js

moment().format('MMMM Do YYYY, h:mm:ss'); // January 14th 2022, 10:30:17 am
moment().format('dddd');                    // Friday
moment().format("MMM Do YY");               // Jan 14th 22
moment().format('YYYY [escaped] YYYY');     // 2022 escaped 2022
moment().format();                          // 2022-01-14T10:30:17+05:00
Source by momentjs.com #
 
PREVIOUS NEXT
Tagged: #moment #js
ADD COMMENT
Topic
Name
9+2 =