Calculating dates given two dates excluding weekend

前端 未结 7 540
予麋鹿
予麋鹿 2020-12-09 00:53

I am using Joda time api in a Spring 3.0 project for to calculate dates. Now I have a start and end date and I want to get everyday exept weekend or Saturday or Sunday betwe

7条回答
  •  失恋的感觉
    2020-12-09 01:19

    You can use the gregorian calendar to retrieve the day for a particular date. If the string is Saturday or Sunday you can neglect it.

提交回复
热议问题