Manipulating Dates with Day.js — Set the Year of a Date and Get Max Values Between Multiple Dates

John Au-Yeung
JavaScript in Plain English
2 min readApr 27, 2024

--

Photo by Jon Flobrant on Unsplash

Day.js is a JavaScript library that lets us manipulate dates in our apps.

In this article, we’ll look at how to use Day.js to manipulate dates in our JavaScript apps.

Set the Quarter of the Year of a Date

--

--