Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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)

{

countSATSUN++;

}

this is giving wrong count

Can somebody help

 

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Joshua Yamdogo @ Adaptavist
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 Champions.
October 24, 2018
TAGS
AUG Leaders

Atlassian Community Events