I have reading moment.js
document, there have a moment.toISOString()
function for helps to formats a string to the ISO8601
standard.
Also there have a another one reason for why we use moment.toISOString()
moment.toISOString()
function using for performance reasons.
I don't know toISOString()
the performance best than moment.toString()
.But only the result was difference while using moment.toString()
and moment.toISOString()
.
So my question is.
Why we should use
moment.toISOString()
? for performance reasons?And what is the difference between
moment.toISOString()
andmoment.toString()
?