在PHP中获取本周星期四或下周星期四的日期
我需要获取本周四(或其他任何一天)或下周四(或其他任何一天)的日期
I need to get the DATE of this week's Thursday (or any other day) OR next week's Thursday (or any other day)
这种情况是每周有3个巡回演出.我需要找出下一个巡回演出日期
The scenario is that there are 3 tours happening every week.. I need to find out next tour date
如果今天是星期二,日期是2014年2月21日,并且旅行在星期二,星期五和星期天进行..那么我需要找出下一个旅行日期,它将在星期五的星期五
If today is tuesday and date is 21/01/2014 and tours happen on tuesday, friday and sunday.. then I need to find out next tour date which will be on friday on friday
同样,如果今天是星期五,我需要找出下周的星期二.
Similarly, if today is Friday, I'll need to find out date on next week's tuesday.
到目前为止,我尝试使用 strtotime(下一个星期二")
,但效果似乎不太好
So far, I tried using strtotime("next tuesday")
but it doesn't seem to work well