- 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 - Creation Data
This method allows to access the data, that is the input provided once the moment is created. It returns the object with the inputs.
Syntax
moment().creationData();
Observe the following example to understand the working of creationData in MomentJS −
Example
var m = moment("2013-01-02", "YYYY-MM-DD").creationData(); m.input; m.format;
Output
momentjs_parsing_date_and_time.htm
Advertisements