use .getDate
instead of .getDay
.
The value returned by getDay is an integer corresponding to the day of the week: 0 for Sunday, 1 for Monday, 2 for Tuesday, and so on.
More Related Contents:
- Creating simple countdowns in javascript
- Convert from one date format to another in javascript [duplicate]
- How do I format a date in JavaScript?
- Check time difference in Javascript
- Browsers, time zones, Chrome 67 Error (historic timezone changes)
- How to validate date with format “mm/dd/yyyy” in JavaScript?
- How to add months to a date in JavaScript? [duplicate]
- How to get first and last day of the current week in JavaScript
- Where can I find documentation on formatting a date in JavaScript?
- Get first and last date of current month with JavaScript or jQuery [duplicate]
- How to add/subtract dates with JavaScript?
- `date.setMonth` causes the month to be set too high if `date` is at the end of the month
- Why does Javascript getYear() return 108?
- Javascript format date / time [duplicate]
- How to create a date object from string in javascript [duplicate]
- How to Convert any of the 5 Islamic (Hijri) Calendars’ Dates to any of 18 World Calendars without External Libraries or Complex Astronomical Formulas
- Get the weekday from a Date object or date string using JavaScript
- How can I remove time from date with Moment.js?
- JavaScript Detecting Valid Dates
- Stop javascript Date function from changing timezone offset
- How to get the day of the week from the day number in JavaScript?
- How to set Hours,minutes,seconds to Date which is in GMT
- Why does Javascript getYear() return a three digit number?
- How to properly add 1 month to current date in moment.js
- How to Convert Persian (Jalali) Dates to other 18 Calendar Dates in Javascript without External Libraries or Complex Astronomical Equations
- Loop through a date range with JavaScript
- Elegant method to generate array of random dates within two dates
- javascript date + 7 days
- Javascript Date Plus 2 Weeks (14 days)
- Making a live clock in javascript