Skip to Content
0
Former Member
Jun 17, 2014 at 09:11 AM

DaysOfQuarter

16 Views

Hi all,

As we know we have function "DaysOfMonth()" to calculate days in any month from date and similarly "Days OfYear()" to calculate for year.

but what if we need to calculate number days according to Quarter, like for date=15 Mar 2014 the number of days output must be 74(i.e.31+28+15).

similarly for half-yearly, like for 10th july 2014 the number of days output must be (i.e. 31+28+31+30+31+30+10).

please help