var date = moment().format('MM/DD/YYYY');
moment(date).fromNow();
moment.locale(); // en
moment().time(); // 3:04 PM
moment().format('LTS'); // 3:04:12 PM
moment().format('L'); // 06/24/2022
moment().format('l'); // 6/24/2022
moment().format('LL'); // June 24, 2022
moment().format('ll'); // Jun 24, 2022
moment().format('LLL'); // June 24, 2022 3:04 PM
moment().format('lll'); // Jun 24, 2022 3:04 PM
moment().format('LLLL'); // Friday, June 24, 2022 3:04 PM
moment().format('llll'); // Fri, Jun 24, 2022 3:04 PM
let now = moment()
let now = now.toDate()
moment("20111031", "YYYYMMDD").fromNow(); // 10 years ago
moment("20120620", "YYYYMMDD").fromNow(); // 9 years ago
moment().startOf('day').fromNow(); // 15 hours ago
moment().endOf('day').fromNow(); // in 9 hours
moment().startOf('hour').fromNow(); // an hour ago
moment();
moment(undefined);
// From 2.14.0 onward, also supported
moment([]);
moment({});
var now = moment();