Home  >  Article  >  Backend Development  >  There are 53 weeks in 2015 in PHP, how to calculate it? How should it be calculated if using JS?

There are 53 weeks in 2015 in PHP, how to calculate it? How should it be calculated if using JS?

WBOY
WBOYOriginal
2016-09-06 08:57:131032browse

As mentioned, thank you!

I just discussed it and I don’t know if the following conclusion is correct:

The first day of the year is Monday to Thursday, which is the first week of the year;
The last day of the year is Thursday to Sunday, which is the 53rd week of the year

Reply content:

As mentioned, thank you!

I just discussed it and I don’t know if the following conclusion is correct:

The first day of the year is Monday to Thursday, which is the first week of the year;
The last day of the year is Thursday to Sunday, which is the 53rd week of the year

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn