取星期幾 get day of week
let date = moment('2019-10-19');
console.log(date.isoWeekday()); // 1 ~ 7 , 7 is Sunday
console.log(date.weekday()); // 0 ~ 6 , 0 is Sunday
取星期幾 get day of week
let date = moment('2019-10-19');
console.log(date.isoWeekday()); // 1 ~ 7 , 7 is Sunday
console.log(date.weekday()); // 0 ~ 6 , 0 is Sunday