Answers for "new date with moment format"

6

moment date add

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

moment format date

moment().format('MMMM Do YYYY, h:mm:ss a'); // March 26th 2021, 12:25:33 pm
moment().format('dddd');                    // Friday
moment().format("MMM Do YY");               // Mar 26th 21
moment().format('YYYY [escaped] YYYY');     // 2021 escaped 2021
moment().format();                          // 2021-03-26T12:25:33-04:00
Posted by: Guest on March-26-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language