Day.js is an immutable date library for JavaScript
Day.js is a minimalist JavaScript library that parses, validates, manipulates, and displays dates and times for modern browsers with a largely Moment.js-compatible API.
https://github.com/iamkun/dayjs
Stack Snippet Starter Pack
(from day.js.org)
HTML
<script src="https://unpkg.com/dayjs@1.8.21/dayjs.min.js"></script>
JavaScript
console.log(dayjs().format())