Get number of weekdays in a given month

后端 未结 12 2164
无人及你
无人及你 2020-12-03 15:56

I want to calculate the number of weekdays days in a give month and year. Weekdays means monday to friday. How do i do it ?

12条回答
  •  一整个雨季
    2020-12-03 16:20

    Get the number of working days without holidays between two dates :

    Use example:

    echo number_of_working_days('2013-12-23', '2013-12-29');
    

    Output:

    3
    

    Link to the function

提交回复
热议问题