• 1Installation
  • 2Date/Time Parsing
  • 3Date/Time Manipulation
  • 4Date/Time Display

Moment.apex

  • Docs
  • Tutorials
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