Contact: aviboots(AT)netvision.net.il
43,946 questions
57,360 answers
573 users
function getCurrentQuarter(date = new Date()) { return Math.floor(date.getMonth() / 3 + 1); } console.log(getCurrentQuarter()); /* run: 2 */