Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7820351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T07:15:42+00:00 2026-06-02T07:15:42+00:00

Hi friends i need to get the week count . for ex 1,2,3 ….

  • 0

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 there anyway to set ‘Tuesday’ has default starting day .

my code is …

echo "current week of 2012 this year is ..". $weekNumber = date("W");

output for exapmle 16 . whereas correct should be 15 .

because i need the week starting from tuesday not monday , can anyone tell me how to do it .

since there is very less documentation on it will help others in future if answer is found 🙂

your help and time will be appreciated . or please suggest me a way in comments then 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T07:15:44+00:00Added an answer on June 2, 2026 at 7:15 am

    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
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello friends i need to get user information from facebook i am using code
I need to help to show wall posts from the friends of the logged
I encoded a mysql result from php to json.. I need to decode it
I need to get a user's music and movie likes, and a user's friends
I need to get basic user data from Facebook using FB.api('/<some_id>/') . This works
Need to get the name and picture of mutual friends without using JS. Found
i use this code to get info about friends <?php $fql = SELECT uid,
I need to get the Facebook friends of friends male/female ratio for my app.
i need to get data from array_keys the script i use in the server
I have two tables: User and User2Friend . I need to get user's friends.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.