However, if you check the documentation of Moment.js, you will see that even they recommend some alternatives when it comes to modern development. One of the issues with Moment.js is the bundle size. If you need internationalization or time zone support, the bundle size can get quite large.
One alternative is the Day.js package, which is only 2kb.
If you used Moment.js before, using Day.js will feel very comfortable for you.
In this article, we will take a look at the Day.js package with some examples of the most common functions you will use.
To get started with Day.js, install the package into your project.
npm install dayjs
dayjs and you can now use it in your file.
import dayjs from 'dayjs';
Become a master of times and dates in Python as you work with the datetime and calender modules in this data science tutorial.
This week, I had to construct a date selector form in React that looks like this. As you can see, the user interface includes the surrounding month and date options in addition to the selected date. This means that I need to not only keep track of the current date, but I also need a way to conveniently figure out how many days are in the selected month.
**tl;dr: We are looking for feedback on the **[**Temporal proposal**](https://tc39.es/proposal-temporal/docs/index.html)**. Try out the **[**polyfill**](https://www.npmjs.com/package/proposal-temporal)**, and complete...