Moment can take the date, time units in object form as shown below −
moment({unit: value, ...});
var day = moment({ year :2017, month :10, day :3, hour :15, minute :10, second :3, millisecond :123});