For my project, in php, I always need to know exactly which week number is now. I used the date () command for this and got the year and number of the week. For example, December 22, 2008 was 52 week of the year. just wonderful everything was until the 29th came. Because December 29, 2008 is like week 00, which is to say the least wrong. Therefore, I was finally convinced that data is not suitable for accurate and calculating calculations. The strftime ('% W') function is best suited;