I created a small (3k) date library that extends the native javascript date object. This is much
smaller
verus moment.js and — if you consider the plugins you would need to accomplish this in
day.js
— smaller verus day.js.
You can get the code on github and play with the code on
stackblitz.