As Javascript Date1.0.0+
moment().toDate();
To get a copy of the native Date object that Moment.js wraps, use moment#toDate
.
This will return a copy of the Date
that the moment uses, so any changes to that Date
will not cause moment to change. If you want to change the moment Date
, see moment#manipulate
or moment#set
.
moment#native
has been replaced by moment#toDate
and has been deprecated as of 1.6.0.
当前内容版权归 momentjs.com 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 momentjs.com .