Find out if date is between two dates, ignoring year

前端 未结 4 1238
孤城傲影
孤城傲影 2021-01-18 12:20

I need to determine if a date (month and day) is between two other month/days.

I\'ve attached an image to this post that describes what I\'m trying to do. Basically

4条回答
  •  后悔当初
    2021-01-18 13:12

    Try like this.

    date("M-d", $start_date) && date("M-d", $check_date)

    Working code is here

提交回复
热议问题