Answers for "moment string to seconds"

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

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
Posted by: Guest on October-26-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language