Answers for "how to get time and minute date using moment js"

2

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
3

javascript get time ago with moment

const dateTimeAgo = moment("2020-04-04 11:45:26.123").fromNow();
console.log(dateTimeAgo); //> 6 minutes ago
Posted by: Guest on April-04-2020

Code answers related to "how to get time and minute date using moment js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language