Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8843

Re: How to find the count of holidays between two dates( Start date and end date)

$
0
0

Hi Abhilash,

 

 

                     I did it already. i am getting working days between start date and end date. but i want last working date from today like if i enter 30 days i want 30th working day before  today, if i enter 25 days i want 25 th working date before today.

if i use above function i am getting number of working days from start to end. in my report i am calculating number of weekends and holidays after i did summation of Days enter , weekends and holidays. in section suppression i used the following formula,

(Today - {@SelectionDaysExcWeekendHolidays}) - Date({@Order Create Date}) < 0  this displays less than order create date records only in my report

 

@selectionDaysExcWeekendHolidays=Days enter +Weekends+Holidays

 

in above formula (Today - {@SelectionDaysExcWeekendHolidays}) the date may change in between this date and above start date i need to find the weekends and holidays this loop will continue until there is no weekends and holidays between (Today - {@SelectionDaysExcWeekendHolidays}) and start date.

 

for example

for example if enter days=35

 

Now end date is today

and Start date is Today-35 i.e 12/26/2013

i calculate no of weekends between start date and end date

weekends=10

if i sum all the number of working days it becomes 46.now in between 35(12/26/2013) to 46 (today-46 i.e 12/15/2013) i may get  some weekends and holidays. for this i need to calculate weekends and holidays between Start date(12/26/2013) and end date(12/15/2013). i will sum those days and now number working days increased. i need to do this until now weekends and holidays between start date and end date.

 

 

If you know the solution . Please help me .

 

Thanks,

Ramana


Viewing all articles
Browse latest Browse all 8843

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>