Get2.2.1+

  1. moment().get('year');
  2. moment().get('month'); // 0 to 11
  3. moment().get('date');
  4. moment().get('hour');
  5. moment().get('minute');
  6. moment().get('second');
  7. moment().get('millisecond');

String getter. In general

  1. moment().get(unit) === moment()[unit]()

Units are case insensitive, and support plural and short forms: year (years,y), month (months, M), date (dates, D), hour (hours, h), minute (minutes, m),second (seconds, s), millisecond (milliseconds, ms).