Getting started with Moment.apex
Date/Time Display
We can format Date/Time, and also we can show humanized duration strings.
new Moment().format('yyyy/MM/dd'); // 2018/05/04
new Moment().add(3, 'days').fromNow(); // in 3 days
We can format Date/Time, and also we can show humanized duration strings.
new Moment().format('yyyy/MM/dd'); // 2018/05/04
new Moment().add(3, 'days').fromNow(); // in 3 days