Changing the start day of week from 'monday' to 'tuesday' in Php

前端 未结 1 928
暖寄归人
暖寄归人 2021-01-05 11:06

Hi friends i need to get the week count .

for ex 1,2,3 .... 52 based on the current year .

In php week starts from Monday or Sunday by default

Is the

相关标签:
1条回答
  • 2021-01-05 11:36

    I got my solution thanks to an answer from ramesh.

    To change Tuesday as the start of the week, I did it by using:

    echo "Week count : ".date("W", strtotime("- 1 day"));
    
    0 讨论(0)
提交回复
热议问题