Permalink
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (19 sloc) 531 Bytes
title version signature
As Object
2.10.5
moment().toObject();

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

moment().toObject()  // {
                     //     years: 2015
                     //     months: 6
                     //     date: 26,
                     //     hours: 1,
                     //     minutes: 53,
                     //     seconds: 14,
                     //     milliseconds: 600
                     // }