- 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 - Inspect
This method gives a machine readable date string which when used again to evaluate the same moment. It is mostly used for debugging purpose.
Syntax
moment().inspect();
Example
var a = moment().inspect();
Output
Example
var a = moment(new Date("18/10")).inspect();
Output
Thus, when you have to debug the output of moment, you can inspect its displayed output.
momentjs_formatting_date_and_time.htm
Advertisements
To Continue Learning Please Login
Login with Google