4 ms·
You did not have to, moment.js is just a wrapper around the dozens of inbuilt functions provided by the Date object. Why could you not have used Date.toLocaleD
by orange8 6y ago
You did not have to, moment.js is just a wrapper around the dozens of inbuilt functions provided by the Date object.
Why could you not have used Date.toLocaleDateString() or Date.toDateString() or Date.toISOSting() or any other of the inbuilt functions outlined here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...