Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

moment js

moment().format('MMMM Do YYYY, h:mm:ss'); // January 14th 2022, 10:29:57 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:29:57+05:00
Source by momentjs.com #
 
PREVIOUS NEXT
Tagged: #moment #js
ADD COMMENT
Topic
Name
8+6 =