In this programming tutorial we will learn how to get day of a given date in javascript. It is quite easy in javascript with the help of its built-in Date() object. Let's have a look over the following code sinppet.
Get day of a given date in javascript
The getDay() method returns the day of the week (from 0 to 6) for the specified date, according to your local time.
Note: Sunday is 0, Monday is 1, and so on. This method is always used in conjunction with a Date object.
So that's it. This is the way to get day of a given date in javascript.
I love your feedback.
The getDay() method returns the day of the week (from 0 to 6) for the specified date, according to your local time.
Note: Sunday is 0, Monday is 1, and so on. This method is always used in conjunction with a Date object.
So that's it. This is the way to get day of a given date in javascript.
I love your feedback.
0 comments:
Post a Comment