How to get year-sensitive calendar week ? date(“W”) gives back 52 for 1st of January

后端 未结 3 772
感情败类
感情败类 2020-12-09 13:11

As the headline says, PHP\'s date(\"W\") function gives back the calendar week (for the current day). Unfortunatly it gives back 52 or 53 for the first day(s) of most years.

3条回答
提交回复
热议问题