MomentJSprovides various methods to manipulate Date and Time on the moment object. This chapter deal with all such methods in detail.
The following table shows the methods available in MomentJS which helps in manipulating the Date and Time as required −
Sr.No. | Method & Syntax |
---|---|
1 | Add
moment.add() |
2 | Subtract
moment.subtract() |
3 | Start of Time
moment.startof() |
4 | End of Time
moment.endof() |
5 | Local
moment.local() |
6 | UTC
moment.utc() |
7 | UTC offset
moment.utcOffset() |