How to Transform Moment.js Objects to JavaScript Date Objects or Strings?
Published in
2 min readNov 24, 2021
Moment.js is a useful library that lets us manipulate dates easily.
However, on many occasions, we’ve to convert moment objects back to native JavaScript date objects to let us do things we want.
In this article, we’ll look at how to transform moment.js objects to JavaScript date objects or strings.