Get week number (in the year) from a date PHP

前端 未结 17 2065
星月不相逢
星月不相逢 2020-11-27 14:54

I want to take a date and work out its week number.

So far, I have the following. It is returning 24 when it should be 42.



        
17条回答
  •  鱼传尺愫
    2020-11-27 15:37

    
    

    You had the params to mktime wrong - needs to be Month/Day/Year, not Day/Month/Year

提交回复
热议问题