How can I get the current quarter we are in with javascript? I am trying to detect what quarter we are currently in, e.g. 2.
EDIT And how can I coun
This worked for me!
var d = new Date(); var quarter = Math.ceil(d.getMonth() / 3); console.log(quarter)