title | version | signature |
---|---|---|
Date |
1.0.0 |
moment(Date);
|
You can create a Moment
with a pre-existing native Javascript Date
object.
var day = new Date(2011, 9, 16);
var dayWrapper = moment(day);
This clones the Date
object; further changes to the Date
won't affect the Moment
, and vice-versa.