Utilities

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
1Normalize Unitsmoment.normalizeUnits(String);
2Invalidmoment.invalid(Object);

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *