class Date
getDay()
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
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