How print all the weeks in an year (or first monday of year)

后端 未结 2 606
离开以前
离开以前 2021-01-25 07:23

How print all the weeks which start with monday and end with sunday.. like below ..using Zend_date

1   04-Jan-2010-10-Jan-2010  
2   11-Jan-2010-17-Jan-2010 
3           


        
2条回答
  •  野性不改
    2021-01-25 07:53

    Start by finding the first monday, then you can just add 1 week until the year increments.

提交回复
热议问题