Find week days date from range of the two dates

前端 未结 9 1813
执念已碎
执念已碎 2020-12-24 09:03
$start_date = "2013-05-01";
$last_date = "2013-08-30";

How can I get dates of tuesdays and thursdays between these two dates?

9条回答
  •  甜味超标
    2020-12-24 09:56

    if you have a reference date which you know is a tuesday/thursday you can find days which are a multiple of 7 days from your reference date, these days will always be the same day of the week.

提交回复
热议问题