How to find Find First Sunday of every month

前端 未结 4 898
陌清茗
陌清茗 2020-12-22 14:15

I have require first sunday date of every month using php code.

please can help me.

getSunday();
4条回答
  •  轮回少年
    2020-12-22 14:39

    This is the best way to get first Sunday of the month

    echo date("Y-m-d", strtotime("first Sunday of ".date('M')." ".date('Y').""));
    

提交回复
热议问题