MSDate
If you are using OLE Automation dates in .NET check out Markit On Demand's moment-msdate
. Using this plugin allows you to format OA dates into JavaScript dates and vice-versa.
Convert a moment
to an OA date:
moment().toOADate(); // a floating point number
Or, convert an OA date to a moment
:
moment.fromOADate(41493); // Wed Aug 07 2013 00:00:00 GMT-0600 (MDT)
More information and detailed docs can be found on GitHub at http://markitondemand.github.io/moment-msdate/.
当前内容版权归 momentjs.com 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 momentjs.com .