getDay

getDay returns the index of the week day your date is


const myDate = new Date(2020,11,01);   // this is December 
console.log (myDate.getDay() ); //

zero is Sunday




© 2022 Better Solutions Limited. All Rights Reserved. © 2022 Better Solutions Limited TopPrevNext