Posts by Samir Machado de Oliveira • 91 points
1 post
-
8
votes1
answer4355
viewsQ: How to calculate the difference between two dates by ignoring weekends in Java without using a loop
I was looking for a solution to this problem but I did not find a satisfactory algorithm, so I decided to create the algorithm. I hope it fits someone. public int betweenDaysIgnoreWeekends(DateTime…