class Date

source

getDay()

returns integer from 0(sunday) to 6(saturday).

const d = new Date(2011, 0, 1, 0, 0, 0, 0);
console.log(d.getDay());

Last updated