var dayOfWeek = yourDateObject.getDay();
var isWeekend = (dayOfWeek === 6) || (dayOfWeek === 0); // 6 = Saturday, 0 = Sunday
More Related Contents:
- Why does Date.parse give incorrect results?
- How to add days to Date?
- How to add 30 minutes to a JavaScript Date object?
- Is the Javascript date object always one day off?
- How to subtract days from a plain Date?
- jQuery UI DatePicker to show month year only
- Get hours difference between two dates in Moment Js
- How to convert date to timestamp?
- Current time formatting with Javascript
- How do I pre-populate a jQuery Datepicker textbox with today’s date?
- How to convert an ISO date to the date format yyyy-mm-dd?
- different result for yyyy-mm-dd and yyyy/mm/dd in javascript when passed to “new Date” [duplicate]
- How to ignore user’s time zone and force Date() use specific time zone
- Set date in input type date
- Finding date by subtracting X number of days from a particular date in Javascript
- Javascript Date: next month
- Find all the days in a month with Date object?
- Why isn’t “2016-02-16” equal to “2016-02-16 00:00”?
- from unix timestamp to datetime
- Get age from Birthdate [duplicate]
- Issues with Date() when using JSON.stringify() and JSON.parse()
- How can I get the 4 Mondays of a month with js?
- Round a timestamp to the nearest date
- How to parse a string into a date object at JavaScript?
- Determining Date Equality in Javascript
- Getting the date of next Monday
- Java date format to JavaScript date format
- Generate random date between two dates and times in Javascript
- Convert iso timestamp to date format with Javascript?
- How to convert Moment.js date to users local timezone?