Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,368,293
Community Members
 
Community Events
168
Community Groups

count weekends between 2 dates

def countSATSUN=0

if (c2.get(Calendar.DAY_OF_WEEK) == Calendar.SATURDAY|| c2.get(Calendar.DAY_OF_WEEK) == Calendar.SUNDAY)

{

countSATSUN++;

}

this is giving wrong count

Can somebody help

 

1 answer

0 votes

How is the partial snippet you have posted relevant to the question, and how is it connected to atlassian tools?

Such Java/Groovy questions are typically first hit on stackoverflow - https://stackoverflow.com/questions/4600034/calculate-number-of-weekdays-between-two-dates-in-java

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events