Answers for "moment number to time"

1

momentjs date and time string add minutes

moment(date, "DD-MM-YYYY hh:mm:ss")
                        .add(10, 'minutes')
                        .format('DD/MM/YYYY hh:mm:ss');
Posted by: Guest on May-28-2021
0

datetime to date moment

//date time to date momentjs
var support_date = new Date("2021-10-23 00:00:00");
support_date = moment(support_date).format("YYYY-MM-DD");

//output:"2021-10-23"
Posted by: Guest on October-22-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language