How to get current day count of the quarter | بلاگ

How to get current day count of the quarter

تعرفه تبلیغات در سایت

آخرین مطالب

امکانات وب

Vote count: 0

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.

asked 51 secs ago
Philip S

...
نویسنده : استخدام کار بازدید : 8 تاريخ : يکشنبه 12 فروردين 1397 ساعت: 21:35