Calculating the number of Saturdays and Sundays

前端 未结 7 729
盖世英雄少女心
盖世英雄少女心 2020-12-17 20:23

How can I calculate the number of Saturdays and Sundays between two dates in php?

Is there any inbuilt function for that purpose?

7条回答
  •  余生分开走
    2020-12-17 20:49

    There is a related question here already, Calculate business days

    You can use this to subtract from 7 to get the weekend days, or similar.

提交回复
热议问题