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
Community Members
Community Events
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)




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 -

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events