ZGY
  • Home
  • Blog

Data

A collection of 3 posts
JavaScript

How to compare date sizes in JavaScript?

This article explains how to compare date and time in JavaScript. JavaScript offers various methods to represent date and time, including Date objects, timestamps, and date-time strings.
Apr 20, 2025 3 min read
JavaScript

How to get all the dates between two dates in JavaScript?

We have introduced three methods in JavaScript to get all the dates between two dates: using loops, using built-in functions, and using third-party libraries. Each method has its pros and cons, and we need to choose the appropriate method based on the specific situation to handle the date range.
Apr 19, 2025 3 min read
JavaScript

How to Add Minutes to Date in JavaScript?

How to add minutes and seconds to a date object in JavaScript? This article provides some convenient methods to handle this issue. We can use the methods of the Date object to add minutes and seconds, which are setMinutes() method and setSeconds() method respectively.
Apr 19, 2025 3 min read
Page 1 of 1
ZGY © 2025
△