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
moment();
moment(undefined);
// From 2.14.0 onward, also supported
moment([]);
moment({});
var now = moment();