Moment.js Tutorial
Moment.js is a legacy project, now in maintenance mode. In most cases, you should choose a different library.
See some alternatives at the end of this post.
Proceed at your own peril
Moment.js is a mutable wrapper with a fluent interface for the native JavaScript date object (property _d
).
Use .toDate()
to convert back to a JavaScript date.