public static int getDutyDays(java.util.Date startDate,java.util.Date endDate) { 
int result = 0; 
java.text.SimpleDateFormat df = new java.text.SimpleDateFormat("yyyy-MM-dd"); 
while (startDate.compareTo(endDate) <= 0) { 
if (startDate.getDay() != 6 && startDate.getDay() != 0) 
result++; 
startDate.setDate(startDate.getDate() + 1); 

return result; 
}

相关文章:

  • 2022-01-01
  • 2022-12-23
  • 2021-12-15
  • 2022-02-01
  • 2022-12-23
  • 2021-06-21
  • 2022-12-23
猜你喜欢
  • 2021-12-15
  • 2022-12-23
  • 2021-05-24
  • 2021-07-06
  • 2021-12-03
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案