Creation Data2.11.0+

  1. moment().creationData();

After a moment object is created, all of the inputs can be accessed withcreationData() method:

  1. moment("2013-01-02", "YYYY-MM-DD", true).creationData() === {
  2. input: "2013-01-02",
  3. format: "YYYY-MM-DD",
  4. locale: Locale obj,
  5. isUTC: false,
  6. strict: true
  7. }