Answers for "why moment is use in javascript"

5

moment to javascript date

let now = moment()
let now = now.toDate()
Posted by: Guest on March-22-2020
0

moment.js format

moment("20111031", "YYYYMMDD").fromNow(); // 9 years ago
moment("20120620", "YYYYMMDD").fromNow(); // 8 years ago
moment().startOf('day').fromNow();        // 13 hours ago
moment().endOf('day').fromNow();          // in 11 hours
moment().startOf('hour').fromNow();       // 4 minutes ago
Posted by: Guest on December-04-2020

Code answers related to "why moment is use in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language