Get The Day Of The Week In JavaScript

var now = new Date();
var day = now.getDay();
// 1 (Monday)

It might not straight up give us “Monday”, but it’s a useful method to know.