I used the below approach to get quarter of the given date.
const month = new Date().getMonth() + 1;
const quarter = Math.ceil(month/3);
Now I want to get current day count of the quarter. Ex. Current Date is 2018 Jun 20, the I want the current day of the quarter is 81. How can I achieve it? Please let me know. Thanks.