Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

convert date online in moment js

moment().format('MMMM Do YYYY, h:mm:ss a'); // October 26th 2021, 3:38:35 pm
moment().format('dddd');                    // Tuesday
moment().format("MMM Do YY");               // Oct 26th 21
moment().format('YYYY [escaped] YYYY');     // 2021 escaped 2021
moment("2021-10-27 02:45 PM").format();                          // 2021-10-26T15:38:35+05:00
Source by momentjs.com #
 
PREVIOUS NEXT
Tagged: #convert #date #online #moment #js
ADD COMMENT
Topic
Name
1+1 =