get the day from the date js code example Example: javascript get day var d = new Date(); var n = d.getDay();