Date1.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.
当前内容版权归 momentjs.com 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 momentjs.com .