- MomentJS Tutorial
- MomentJS - Home
- MomentJS - Overview
- MomentJS - Environment Setup
- MomentJS - Introduction
- MomentJS - Parsing Date And Time
- MomentJS - Date Validation
- MomentJS - Getter/Setter
- Manipulate Date And Time
- Formatting Date And Time
- MomentJS - Date Queries
- MomentJS - Internationalization
- MomentJS - Customization
- MomentJS - Durations
- MomentJS - Utilities
- MomentJS - Plugins
- MomentJS - Examples
- MomentJS Useful Resources
- MomentJS - Quick Guide
- MomentJS - Useful Resources
- MomentJS - Discussion
MomentJS - Manipulate Date and Time
MomentJSprovides various methods to manipulate Date and Time on the moment object. This chapter deal with all such methods in detail.
Methods to Manipulate Date and Time
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() |
Advertisements