MomentJS - Utilities


Advertisements

In MomentJS, you can change or customize the output as per the requirement using normalize units and invalid methods. You can also set your own custom validation on the moment object.

Observe the following table for more information −

Sr.No. Method & Syntax
1 Normalize Units

moment.normalizeUnits(String);

2 Invalid

moment.invalid(Object);

Advertisements