Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

count weekends between 2 dates

IT January 2, 2022

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

Suggest an answer

Log in or Sign up to answer
0 votes
Radek Dostál
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 2, 2022

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 -

AUG Leaders

Atlassian Community Events