Answers for "js moment create date"

6

moment date add

var new_date = moment(startdate, "DD-MM-YYYY").add(5, 'days');
Posted by: Guest on May-15-2020
0

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
Posted by: Guest on April-14-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language