Skip to content

Tag Archives: javascript-date

JavaScript date.setYear() method is used to set the year of a particular date object. This method is different from other date methods as it accepts… Read More
The date.toGMTString() method is used to convert the given date object’s contents into a string according to the Greenwich Mean Time GMT. The date object… Read More
This article will explain how to convert a Date into a Number using JavaScript. The JavaScript Date object is used to get date and times.… Read More
The week number indicates the number of weeks that have been completed in the current year. Example: The week number of january 1 = week… Read More
CFAbsolute time is a standard time format on Apple devices and programming languages like Swift. It stores the amount of nanoseconds since January 1, 2001.… Read More
In this article, we will learn how to calculate the number of days left until next Christmas using JavaScript. Christmas marks the birth of Christ,… Read More
In this article, we will see how to print tomorrow’s date in string representation using JavaScript. To achieve this, we use the Date object and… Read More
The JavaScript Date setTime() Function is a built-in Function in Javascript that is used to get a date object by adding given milliseconds to the… Read More
Given an UTC date and the task is to convert UTC date time into local date-time using JavaScript toLocaleString() function. Syntax: var theDate = new… Read More
Given two timestamp then we have to find out whether these time are of same date or not. Here we can use the JavaScript Date… Read More
Given a date, we have to find the number of seconds since the epoch (i.e. 1 January 1970, 00:00:00 UTC ). The getTime() method in… Read More
To obtain date and time in javascript, we have the Date() class. We access Date() class by creating its objects. Date() class returns date and… Read More
Given a date object and the task is to determine whether the given date is the same as today’s date or not with the help… Read More
Given the 2 JavaScript dates and the job is to get the relative time difference between them(eg.. 2 hours ago, 2.5 days ago, etc.) Here… Read More
The task is to determine if the given date is in between the given 2 dates or not? Here are a few of the most… Read More

Start Your Coding Journey Now!