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 Unitsmoment.normalizeUnits(String); |
2 | Invalidmoment.invalid(Object); |
Leave a Reply