The getDay() method is represented by the following syntax:
An integer value between 0 and 6 that represents the days of the week for the specified date.
Here, we will understand getDay() method through various examples.
Let's see an example to print the value of today's weekday.Test it Now
Let's see an example to print the value of weekday from the given date.Test it Now