Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

moment js

moment().format('MMMM Do YYYY, h:mm:ss'); // March 24th 2021, 4:02:53 pm
moment().format('dddd');                    // Wednesday
moment().format("MMM Do YY");               // Mar 24th 21
moment().format('YYYY [escaped] YYYY');     // 2021 escaped 2021
moment().format();                          // 2021-03-24T16:02:53-03:00
Source by momentjs.com #
 
PREVIOUS NEXT
Tagged: #moment #js
ADD COMMENT
Topic
Name
8+8 =