How to Transform Moment.js Objects to JavaScript Date Objects or Strings?

John Au-Yeung
JavaScript in Plain English
2 min readNov 24, 2021

--

Photo by Sarah Dorweiler on Unsplash

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.

--

--