I bought a new bootstrap template for my system, and it came with an enclosed deal that returns me multiple alerts, moment.js.
From what I've come to understand, it's like a client-side validation library with language support and conversion of some date formats, and I do not understand anything else.
Example:
I have a daterange to generate reports, and when I activate this daterange, the moment notifies my console:
Deprecation warning: moment (). subtract (period, number) is deprecated. Please use moment (). Subtract (number, period).
But the code works, and if I correct this informed warning, the daterange stops working as it should.
The question is:
What does moment.js actually do?
What can I do with it?
Note: I ask this because I did not really see any utility in it, and several templates come with it docked, but I believe I'm wrong about it and probably it should be useful.