Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 218 Bytes

12-as-array.md

File metadata and controls

13 lines (10 loc) · 218 Bytes
title version signature
As Array
1.7.0
moment().toArray();

This returns an array that mirrors the parameters from new Date().

moment().toArray(); // [2013, 1, 4, 14, 40, 16, 154];