As Object2.10.5+

  1. moment().toObject();

This returns an object containing year, month, day-of-month, hour, minute,seconds, milliseconds.

  1. moment().toObject() // {
  2. // years: 2015
  3. // months: 6
  4. // date: 26,
  5. // hours: 1,
  6. // minutes: 53,
  7. // seconds: 14,
  8. // milliseconds: 600
  9. // }