PHP Select every other Wednesday

前端 未结 4 1737
天命终不由人
天命终不由人 2021-01-27 01:18

I need help Select every other Wednesday starting on 5/2/12. This code below selects every other Wednesday starting on the week it currently is. But i need to set the beginning

4条回答
  •  无人共我
    2021-01-27 02:08

    Give it a date in the string, instead of "Wednesday" (that chooses the next Wednesday), write:

    strtotime('20120502 +' . ($i * 2) . ' weeks'))

    To choose that date. (Format is yyyymmdd).

提交回复
热议问题