Menu

📰
0

Moving From Moment.js To The JS Temporal API

Articles on Smashing Magazine — For Web Designers And Developers·@hellosmashingmagazine.comJoeAttardi·2 months ago
#XwiAfI
#smashingmagazine#englishlanguage
Reading 0:00
15s threshold

Almost any kind of application written in JavaScript works with times or dates in some capacity. In the beginning, this was limited to the built-in Date API. This API includes basic functionality, but is quite limited in what it can do. Third-party libraries like Moment.js, and later built-in APIs such as the Intl APIs and the new Temporal API, add much greater flexibility to working with times and dates. The Rise And Fall Of Moment.js Moment.js is a JavaScript library with powerful utilities for working with times and dates. It includes missing features from the basic Date API, such as time zone manipulation, and makes many common operations simpler. Moment also includes functions for formatting dates and times. It became a widely used library in many different applications. However, Moment also had its share of issues. It’s a large library, and can add significantly to an application’s bundle size.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More